Fix #305 expand snippet problem

This commit is contained in:
Shougo Matsushita 2015-12-15 07:48:13 +09:00
parent 44b129aa21
commit 5cff13af13

View File

@ -184,8 +184,10 @@ function! s:indent_snippet(begin, end) "{{{
try
setlocal equalprg=
let neosnippet = neosnippet#variables#current_neosnippet()
let base_indent = matchstr(getline(a:begin), '^\s\+')
for line_nr in range(a:begin + 1, a:end)
for line_nr in range((neosnippet.target != '' ?
\ a:begin : a:begin + 1), a:end)
call cursor(line_nr, 0)
if getline('.') =~ '^\t\+'