diff --git a/plugin/surround.vim b/plugin/surround.vim index bb1ab83..4992a00 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -425,7 +425,9 @@ function! s:dosurround(...) " {{{1 else exe 'norm d'.strcount.'i'.char " One character backwards - call search('.','bW') + if getreg('"') != "" + call search('.','bW') + endif endif let keeper = getreg('"') let okeeper = keeper " for reindent below