Don't back up if no match found
This commit is contained in:
parent
4c001173ad
commit
5f32b8921e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user