- Fixed plugin indentation problem.
This commit is contained in:
parent
f19dd42c17
commit
23146787d0
@ -568,6 +568,8 @@ function! s:expand_newline()"{{{
|
||||
|
||||
let formatoptions = &l:formatoptions
|
||||
setlocal formatoptions-=r
|
||||
let equalprg = &l:equalprg
|
||||
setlocal equalprg=
|
||||
|
||||
while match >= 0
|
||||
let end = getline('.')[matchend(getline('.'), '<\\n>') :]
|
||||
@ -581,12 +583,18 @@ function! s:expand_newline()"{{{
|
||||
silent execute 'normal!'
|
||||
\ (match+1 >= col('$')? 'a' : 'i')."\<CR>"
|
||||
|
||||
let pos = getpos('.')
|
||||
startinsert!
|
||||
normal! ==
|
||||
call setpos('.', pos)
|
||||
|
||||
" Next match.
|
||||
let match = match(getline('.'), '<\\n>')
|
||||
let s:end_snippet += 1
|
||||
endwhile
|
||||
|
||||
let &l:formatoptions = formatoptions
|
||||
let &l:equalprg = equalprg
|
||||
endfunction"}}}
|
||||
function! s:expand_tabline()"{{{
|
||||
let tablines = split(getline('.'), '<\\n>')
|
||||
|
@ -297,6 +297,7 @@ CHANGELOG *neocomplcache-snippets-complete-changelog*
|
||||
|
||||
2012-03-08
|
||||
- Use shiftwidth instead of softabstop.
|
||||
- Fixed plugin indentation problem.
|
||||
|
||||
2012-03-07
|
||||
- Added snippet source.
|
||||
|
Loading…
Reference in New Issue
Block a user