mirror of
https://github.com/tpope/vim-surround.git
synced 2025-11-14 14:23:48 -05:00
Don't save deleted surrounding in unnamed register
This commit is contained in:
@@ -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 == ""
|
||||
|
||||
Reference in New Issue
Block a user