From 245035ba5185b2acec292643fd5605fce98d1f3f Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sun, 20 Apr 2014 11:55:54 +0900 Subject: [PATCH] Save and Restore foldmethod for all method including `expr` close #140 --- autoload/EasyMotion.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/EasyMotion.vim b/autoload/EasyMotion.vim index e14c6af..5ea1f7e 100644 --- a/autoload/EasyMotion.vim +++ b/autoload/EasyMotion.vim @@ -353,9 +353,9 @@ function! s:SaveValue() "{{{ call EasyMotion#helper#VarReset('&readonly', 0) call EasyMotion#helper#VarReset('&spell', 0) call EasyMotion#helper#VarReset('&virtualedit', '') - if &foldmethod !=# 'expr' + " if &foldmethod !=# 'expr' call EasyMotion#helper#VarReset('&foldmethod', 'manual') - endif + " endif endfunction "}}} function! s:RestoreValue() "{{{ call EasyMotion#helper#VarReset('&scrolloff') @@ -364,9 +364,9 @@ function! s:RestoreValue() "{{{ call EasyMotion#helper#VarReset('&readonly') call EasyMotion#helper#VarReset('&spell') call EasyMotion#helper#VarReset('&virtualedit') - if &foldmethod !=# 'expr' + " if &foldmethod !=# 'expr' call EasyMotion#helper#VarReset('&foldmethod') - endif + " endif endfunction "}}} function! s:turn_off_hl_error() "{{{ let s:error_hl = EasyMotion#highlight#capture('Error')