- Fixed get snippet range.

This commit is contained in:
Shougo Matsushita 2013-02-16 21:39:39 +09:00
parent f2f56b5a0f
commit c6e175ef71

View File

@ -1252,15 +1252,16 @@ function! s:on_insert_leave() "{{{
let expand_info = s:snippets_expand_stack[-1] let expand_info = s:snippets_expand_stack[-1]
if expand_info.begin_line != expand_info.end_line
return
endif
" Search patterns. " Search patterns.
let [begin, end] = s:get_snippet_range( let [begin, end] = s:get_snippet_range(
\ expand_info.begin_line, \ expand_info.begin_line,
\ expand_info.begin_patterns, \ expand_info.begin_patterns,
\ expand_info.end_line, \ expand_info.end_line,
\ expand_info.end_patterns) \ expand_info.end_patterns)
if begin != end
return
endif
let pos = getpos('.') let pos = getpos('.')
try try