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