mirror of
https://github.com/tpope/vim-surround.git
synced 2025-11-12 21:33:50 -05:00
Don't back up if no match found
This commit is contained in:
@@ -425,8 +425,10 @@ function! s:dosurround(...) " {{{1
|
||||
else
|
||||
exe 'norm d'.strcount.'i'.char
|
||||
" One character backwards
|
||||
if getreg('"') != ""
|
||||
call search('.','bW')
|
||||
endif
|
||||
endif
|
||||
let keeper = getreg('"')
|
||||
let okeeper = keeper " for reindent below
|
||||
if keeper == ""
|
||||
|
||||
Reference in New Issue
Block a user