Don't save deleted surrounding in unnamed register

This commit is contained in:
Tim Pope 2012-03-03 06:37:35 -05:00
parent 98e4526c26
commit efc017dcb4

View File

@ -429,7 +429,7 @@ function! s:dosurround(...) " {{{1
if getline('.') =~ '^\s\+$' && keeper =~ '^\s*\n'
silent norm! cc
endif
call setreg('"',removed,regtype)
call setreg('"',original,otype)
let s:lastdel = removed
let &clipboard = cb_save
if newchar == ""