From fea47208d18640d4856bb4f4dee70fe926cdbc76 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 12 Nov 2006 02:02:30 +0000 Subject: [PATCH] Eliminated error in visual mode mapping --- plugin/surround.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/surround.vim b/plugin/surround.vim index f397361..3a9e751 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -657,7 +657,7 @@ function! s:opfunc(type,...) " {{{1 endif call setreg(reg,keeper,type) call s:wrapreg(reg,char,a:0) - if type == "v" && append != "" + if type == "v" && a:type != "v" && append != "" call setreg(reg,append,"ac") endif silent exe 'norm! gv'.(reg == '"' ? '' : '"' . reg).'p`['