Eliminated error in visual mode mapping

This commit is contained in:
Tim Pope 2006-11-12 02:02:30 +00:00
parent b31015ee87
commit fea47208d1

View File

@ -657,7 +657,7 @@ function! s:opfunc(type,...) " {{{1
endif endif
call setreg(reg,keeper,type) call setreg(reg,keeper,type)
call s:wrapreg(reg,char,a:0) call s:wrapreg(reg,char,a:0)
if type == "v" && append != "" if type == "v" && a:type != "v" && append != ""
call setreg(reg,append,"ac") call setreg(reg,append,"ac")
endif endif
silent exe 'norm! gv'.(reg == '"' ? '' : '"' . reg).'p`[' silent exe 'norm! gv'.(reg == '"' ? '' : '"' . reg).'p`['