Skip to content

Commit 7ab542a

Browse files
committed
Don't block use of user defined text objects
1 parent fab8621 commit 7ab542a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugin/surround.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ function! s:dosurround(...) " {{{1
407407
endif
408408
exe 'norm! dt'.char
409409
else
410-
exe 'norm! d'.strcount.'i'.char
410+
exe 'norm d'.strcount.'i'.char
411411
endif
412412
let keeper = getreg('"')
413413
let okeeper = keeper " for reindent below
@@ -436,7 +436,7 @@ function! s:dosurround(...) " {{{1
436436
else
437437
" One character backwards
438438
call search('\m.', 'bW')
439-
exe "norm! da".char
439+
exe "norm da".char
440440
endif
441441
let removed = getreg('"')
442442
let rem2 = substitute(removed,'\n.*','','')
@@ -510,7 +510,7 @@ function! s:opfunc(type, ...) abort " {{{1
510510
let reg_type = getregtype(reg)
511511
let type = a:type
512512
if a:type == "char"
513-
silent exe 'norm! v`[o`]"'.reg.'y'
513+
silent exe 'norm v`[o`]"'.reg.'y'
514514
let type = 'v'
515515
elseif a:type == "line"
516516
silent exe 'norm! `[V`]"'.reg.'y'

0 commit comments

Comments
 (0)