Skip to content

Commit

Permalink
Don't block use of user defined text objects
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed May 7, 2016
1 parent 2d05440 commit 73c268c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/surround.vim
Expand Up @@ -393,7 +393,7 @@ function! s:dosurround(...) " {{{1
endif
exe 'norm! dt'.char
else
exe 'norm! d'.strcount.'i'.char
exe 'norm d'.strcount.'i'.char
endif
let keeper = getreg('"')
let okeeper = keeper " for reindent below
Expand Down Expand Up @@ -422,7 +422,7 @@ function! s:dosurround(...) " {{{1
else
" One character backwards
call search('\m.', 'bW')
exe "norm! da".char
exe "norm da".char
endif
let removed = getreg('"')
let rem2 = substitute(removed,'\n.*','','')
Expand Down Expand Up @@ -492,7 +492,7 @@ function! s:opfunc(type,...) " {{{1
let reg_type = getregtype(reg)
let type = a:type
if a:type == "char"
silent exe 'norm! v`[o`]"'.reg.'y'
silent exe 'norm v`[o`]"'.reg.'y'
let type = 'v'
elseif a:type == "line"
silent exe 'norm! `[V`]"'.reg.'y'
Expand Down

0 comments on commit 73c268c

Please sign in to comment.