- Fixed range().

This commit is contained in:
Shougo Matsushita 2012-03-15 20:44:36 +09:00
parent 5abf5cfdcd
commit 5fb35fce8d

View File

@ -686,7 +686,7 @@ function! s:get_snippet_range(begin_line, begin_patterns, end_line, end_patterns
endif
call setpos('.', pos)
return [begin, end]
return sort([begin, end])
endfunction"}}}
function! s:search_snippet_range(start, end, cnt)"{{{
call s:substitute_placeholder_marker(a:start, a:end, a:cnt)