mirror of
https://github.com/tpope/vim-surround.git
synced 2025-11-13 05:43:49 -05:00
Don't back up if no match found
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user