Permalink
Browse files

Don't save deleted surrounding in unnamed register

  • Loading branch information...
1 parent 98e4526 commit efc017dcb4e0c95e195dd7c4fb903ecaa2a094e9 @tpope committed Mar 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/surround.vim
View
@@ -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 == ""

0 comments on commit efc017d

Please sign in to comment.