From d2ddf3f5ef0a41d213fc466253b66bd860e8fd4c Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Fri, 12 Apr 2013 11:11:18 +0900 Subject: [PATCH] - Removed changing foldmethod feature. --- autoload/neosnippet.vim | 14 +------------- doc/neosnippet.txt | 3 +++ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/autoload/neosnippet.vim b/autoload/neosnippet.vim index 9efd6fb..faffc08 100644 --- a/autoload/neosnippet.vim +++ b/autoload/neosnippet.vim @@ -1,7 +1,7 @@ "============================================================================= " FILE: neosnippet.vim " AUTHOR: Shougo Matsushita -" 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 diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index b46a933..373740d 100755 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -772,6 +772,9 @@ A: ============================================================================== CHANGELOG *neosnippet-changelog* +2013-04-12 +- Removed changing foldmethod feature. + 2013-04-11 - Improved syntax file.