From f57e5aa972f0792fe3ec5a9bf5dec73f7b9fca9f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 25 Dec 2012 17:20:21 -0500 Subject: [PATCH] Fix deletion of delimiters on their own lines Closes #19. --- plugin/surround.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/surround.vim b/plugin/surround.vim index 8b882dd..f6b9407 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -415,7 +415,7 @@ function! s:dosurround(...) " {{{1 else let pcmd = "P" endif - if line('.') < oldlnum && regtype ==# "V" + if line('.') + 1 < oldlnum && regtype ==# "V" let pcmd = "p" endif call setreg('"',keeper,regtype)