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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user