From 3ca2e1d8464e0709dab186a204b0f9b2a9286783 Mon Sep 17 00:00:00 2001 From: ujihisa Date: Fri, 22 Mar 2013 08:32:15 -0700 Subject: [PATCH] bugfix: variable mirror_marker is undefined at that time --- autoload/neosnippet.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/neosnippet.vim b/autoload/neosnippet.vim index 5d1ab80..bb2248d 100644 --- a/autoload/neosnippet.vim +++ b/autoload/neosnippet.vim @@ -963,13 +963,13 @@ function! s:substitute_placeholder_marker(start, end, snippet_holder_cnt) "{{{ let cnt = matchstr(getline('.'), \ substitute(s:get_sync_placeholder_marker_pattern(), \ '\\d\\+', '\\zs\\d\\+\\ze', '')) + let mirror_marker = substitute( + \ s:get_mirror_placeholder_marker_pattern(), + \ '\\d\\+', cnt, '') silent execute printf('%%s/' . mirror_marker . '/%s/' \ . (&gdefault ? 'g' : ''), sub) let sync_marker = substitute(s:get_sync_placeholder_marker_pattern(), \ '\\d\\+', cnt, '') - let mirror_marker = substitute( - \ s:get_mirror_placeholder_marker_pattern(), - \ '\\d\\+', cnt, '') call setline('.', substitute(getline('.'), sync_marker, sub, '')) endif endfunction"}}}