From a03b60330789e7f056940deca8fb33eebf152318 Mon Sep 17 00:00:00 2001 From: Michael Sanders Date: Mon, 4 May 2009 17:03:49 -0400 Subject: [PATCH] fixed bug with & in snippet placeholders --- autoload/snipMate.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/snipMate.vim b/autoload/snipMate.vim index dc8d356..e0b32d5 100644 --- a/autoload/snipMate.vim +++ b/autoload/snipMate.vim @@ -379,7 +379,7 @@ fun s:UpdateVars() " "Very nomagic" is used here to allow special characters. call setline(lnum, substitute(getline(lnum), '\%'.col.'c\V'. - \ escape(s:oldWord, '\'), escape(newWord, '\'), '')) + \ escape(s:oldWord, '\'), escape(newWord, '\&'), '')) endfor if oldStartSnip != s:startSnip call cursor(0, startCol + s:startSnip - oldStartSnip)