Fix #305 expand snippet problem
This commit is contained in:
parent
44b129aa21
commit
5cff13af13
@ -184,8 +184,10 @@ function! s:indent_snippet(begin, end) "{{{
|
|||||||
try
|
try
|
||||||
setlocal equalprg=
|
setlocal equalprg=
|
||||||
|
|
||||||
|
let neosnippet = neosnippet#variables#current_neosnippet()
|
||||||
let base_indent = matchstr(getline(a:begin), '^\s\+')
|
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)
|
call cursor(line_nr, 0)
|
||||||
|
|
||||||
if getline('.') =~ '^\t\+'
|
if getline('.') =~ '^\t\+'
|
||||||
|
Loading…
Reference in New Issue
Block a user