Don't save deleted surrounding in unnamed register
This commit is contained in:
parent
98e4526c26
commit
efc017dcb4
@ -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 == ""
|
||||
|
Loading…
Reference in New Issue
Block a user