diff options
| -rw-r--r-- | bundle/prr-ui/autoload/prr_ui.vim | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/bundle/prr-ui/autoload/prr_ui.vim b/bundle/prr-ui/autoload/prr_ui.vim index 8e35a50..341df3c 100644 --- a/bundle/prr-ui/autoload/prr_ui.vim +++ b/bundle/prr-ui/autoload/prr_ui.vim @@ -864,4 +864,14 @@ endfunction  " Comment on the current line.  function! prr_ui#Comment() +	let current_line = getline('.') + +	" Open the existing Prr review file in a new split. +	sbuffer prr + +	call search(current_line) + +	" Put the cursor in place to add a comment on the line. +	call append('.', ['', '', '']) +	call cursor(line('.') + 2, 0)  endfunction | 
