From b8b7ed84eed4cf1bc773191e974ca7071b3c9000 Mon Sep 17 00:00:00 2001 From: Alex Padgett Date: Fri, 2 Mar 2012 10:24:19 -0500 Subject: [PATCH] Clear s:tag before starting wrap function --- plugin/surround.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/surround.vim b/plugin/surround.vim index c28ed76..0810a16 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -127,6 +127,7 @@ endfunction function! s:wrap(string,char,type,...) let keeper = a:string let newchar = a:char + let s:tag = "" let type = a:type let linemode = type ==# 'V' ? 1 : 0 let special = a:0 ? a:1 : 0