Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't block use of user defined text objects #200

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions plugin/surround.vim
Expand Up @@ -407,7 +407,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 @@ -436,7 +436,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 @@ -510,7 +510,7 @@ function! s:opfunc(type, ...) abort " {{{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