Escape ampersand in mirror text

This commit is contained in:
Jacob Niehus 2014-05-12 21:39:57 -07:00
parent d02aafcbdd
commit 31ffdd6808
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ function! s:substitute_placeholder_marker(start, end, snippet_holder_cnt) "{{{
if getline(line) =~ sync_marker
let sub = escape(matchstr(getline(line),
\ substitute(neosnippet#get_sync_placeholder_marker_default_pattern(),
\ '\\d\\+', cnt, '')), '/\')
\ '\\d\\+', cnt, '')), '/\&')
silent execute printf('%d,%ds/\m' . mirror_marker . '/%s/'
\ . (&gdefault ? '' : 'g'), a:start, a:end, sub)
call setline(line, substitute(getline(line), sync_marker, sub, ''))