Skip to content

Commit 73c268c

Browse files
committed
Don't block use of user defined text objects
1 parent 2d05440 commit 73c268c

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
@@ -393,7 +393,7 @@ function! s:dosurround(...) " {{{1
393393
endif
394394
exe 'norm! dt'.char
395395
else
396-
exe 'norm! d'.strcount.'i'.char
396+
exe 'norm d'.strcount.'i'.char
397397
endif
398398
let keeper = getreg('"')
399399
let okeeper = keeper " for reindent below
@@ -422,7 +422,7 @@ function! s:dosurround(...) " {{{1
422422
else
423423
" One character backwards
424424
call search('\m.', 'bW')
425-
exe "norm! da".char
425+
exe "norm da".char
426426
endif
427427
let removed = getreg('"')
428428
let rem2 = substitute(removed,'\n.*','','')
@@ -492,7 +492,7 @@ function! s:opfunc(type,...) " {{{1
492492
let reg_type = getregtype(reg)
493493
let type = a:type
494494
if a:type == "char"
495-
silent exe 'norm! v`[o`]"'.reg.'y'
495+
silent exe 'norm v`[o`]"'.reg.'y'
496496
let type = 'v'
497497
elseif a:type == "line"
498498
silent exe 'norm! `[V`]"'.reg.'y'

0 commit comments

Comments
 (0)