From efc017dcb4e0c95e195dd7c4fb903ecaa2a094e9 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 3 Mar 2012 06:37:35 -0500 Subject: [PATCH] Don't save deleted surrounding in unnamed register --- plugin/surround.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/surround.vim b/plugin/surround.vim index fd49268..846e838 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -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 == ""