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