Improve NeoSnippetClearMarkers behavior

This commit is contained in:
Shougo Matsushita 2015-08-16 07:05:02 +09:00
parent 58ac259dc5
commit a272ad16d1
2 changed files with 5 additions and 0 deletions

View File

@ -175,6 +175,8 @@ function! neosnippet#commands#_clear_markers() "{{{
endif endif
call setpos('.', pos) call setpos('.', pos)
call neosnippet#variables#clear_expand_stack()
endtry endtry
endfunction"}}} endfunction"}}}

View File

@ -46,6 +46,9 @@ function! neosnippet#variables#expand_stack() "{{{
return s:expand_stack return s:expand_stack
endfunction"}}} endfunction"}}}
function! neosnippet#variables#clear_expand_stack() "{{{
let s:expand_stack = []
endfunction"}}}
function! neosnippet#variables#snippets() "{{{ function! neosnippet#variables#snippets() "{{{
if !exists('s:snippets') if !exists('s:snippets')
let s:snippets= {} let s:snippets= {}