1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2025-12-22 14:08:01 +01:00

fixed bug with & in snippet placeholders

This commit is contained in:
Michael Sanders
2009-05-04 17:03:49 -04:00
parent 991d0442a5
commit a03b603307

View File

@@ -379,7 +379,7 @@ fun s:UpdateVars()
" "Very nomagic" is used here to allow special characters. " "Very nomagic" is used here to allow special characters.
call setline(lnum, substitute(getline(lnum), '\%'.col.'c\V'. call setline(lnum, substitute(getline(lnum), '\%'.col.'c\V'.
\ escape(s:oldWord, '\'), escape(newWord, '\'), '')) \ escape(s:oldWord, '\'), escape(newWord, '\&'), ''))
endfor endfor
if oldStartSnip != s:startSnip if oldStartSnip != s:startSnip
call cursor(0, startCol + s:startSnip - oldStartSnip) call cursor(0, startCol + s:startSnip - oldStartSnip)