Fix deletion of delimiters on their own lines

Closes #19.
This commit is contained in:
Tim Pope 2012-12-25 17:20:21 -05:00
parent 1a73f607f8
commit f57e5aa972

View File

@ -415,7 +415,7 @@ function! s:dosurround(...) " {{{1
else else
let pcmd = "P" let pcmd = "P"
endif endif
if line('.') < oldlnum && regtype ==# "V" if line('.') + 1 < oldlnum && regtype ==# "V"
let pcmd = "p" let pcmd = "p"
endif endif
call setreg('"',keeper,regtype) call setreg('"',keeper,regtype)