- Removed changing foldmethod feature.
This commit is contained in:
parent
1584bba941
commit
d2ddf3f5ef
@ -1,7 +1,7 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
" FILE: neosnippet.vim
|
" FILE: neosnippet.vim
|
||||||
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
|
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
|
||||||
" Last Modified: 02 Apr 2013.
|
" Last Modified: 12 Apr 2013.
|
||||||
" License: MIT license {{{
|
" License: MIT license {{{
|
||||||
" Permission is hereby granted, free of charge, to any person obtaining
|
" Permission is hereby granted, free of charge, to any person obtaining
|
||||||
" a copy of this software and associated documentation files (the
|
" a copy of this software and associated documentation files (the
|
||||||
@ -581,11 +581,6 @@ function! neosnippet#expand(cur_text, col, trigger_name) "{{{
|
|||||||
let next_col = len(snippet_lines[-1]) + 1
|
let next_col = len(snippet_lines[-1]) + 1
|
||||||
let snippet_lines[-1] = snippet_lines[-1] . next_line
|
let snippet_lines[-1] = snippet_lines[-1] . next_line
|
||||||
|
|
||||||
if has('folding')
|
|
||||||
let foldmethod = &l:foldmethod
|
|
||||||
let &l:foldmethod = 'manual'
|
|
||||||
endif
|
|
||||||
|
|
||||||
try
|
try
|
||||||
call setline('.', snippet_lines[0])
|
call setline('.', snippet_lines[0])
|
||||||
if len(snippet_lines) > 1
|
if len(snippet_lines) > 1
|
||||||
@ -613,7 +608,6 @@ function! neosnippet#expand(cur_text, col, trigger_name) "{{{
|
|||||||
endif
|
endif
|
||||||
finally
|
finally
|
||||||
if has('folding')
|
if has('folding')
|
||||||
let &l:foldmethod = foldmethod
|
|
||||||
silent! execute begin_line . ',' . end_line . 'foldopen!'
|
silent! execute begin_line . ',' . end_line . 'foldopen!'
|
||||||
endif
|
endif
|
||||||
endtry
|
endtry
|
||||||
@ -886,11 +880,6 @@ function! s:expand_target_placeholder(line, col) "{{{
|
|||||||
let begin_line = a:line
|
let begin_line = a:line
|
||||||
let end_line = a:line + len(target_lines) - 1
|
let end_line = a:line + len(target_lines) - 1
|
||||||
|
|
||||||
if has('folding')
|
|
||||||
let foldmethod = &l:foldmethod
|
|
||||||
let &l:foldmethod = 'manual'
|
|
||||||
endif
|
|
||||||
|
|
||||||
let col = col('.')
|
let col = col('.')
|
||||||
try
|
try
|
||||||
let base_indent = matchstr(cur_text, '^\s\+')
|
let base_indent = matchstr(cur_text, '^\s\+')
|
||||||
@ -911,7 +900,6 @@ function! s:expand_target_placeholder(line, col) "{{{
|
|||||||
endif
|
endif
|
||||||
finally
|
finally
|
||||||
if has('folding')
|
if has('folding')
|
||||||
let &l:foldmethod = foldmethod
|
|
||||||
silent! execute begin_line . ',' . end_line . 'foldopen!'
|
silent! execute begin_line . ',' . end_line . 'foldopen!'
|
||||||
endif
|
endif
|
||||||
endtry
|
endtry
|
||||||
|
@ -772,6 +772,9 @@ A:
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
CHANGELOG *neosnippet-changelog*
|
CHANGELOG *neosnippet-changelog*
|
||||||
|
|
||||||
|
2013-04-12
|
||||||
|
- Removed changing foldmethod feature.
|
||||||
|
|
||||||
2013-04-11
|
2013-04-11
|
||||||
- Improved syntax file.
|
- Improved syntax file.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user