From bd03c22f7528cd45e919223ff6e2c1469da26284 Mon Sep 17 00:00:00 2001 From: Kyohei Morihiro Date: Tue, 11 Apr 2017 12:40:42 +0900 Subject: [PATCH] Fix to use current &migemodict value if it exists --- autoload/EasyMotion/cmigemo.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/autoload/EasyMotion/cmigemo.vim b/autoload/EasyMotion/cmigemo.vim index 898f4c4..9a53361 100644 --- a/autoload/EasyMotion/cmigemo.vim +++ b/autoload/EasyMotion/cmigemo.vim @@ -92,12 +92,14 @@ function! EasyMotion#cmigemo#getMigemoPattern(input) "{{{ if has('migemo') " Use migemo(). - let save_migemo_dict = &migemodict + if &migemodict !=# '' + return migemo(a:input) + endif let &migemodict = s:migemodict try return migemo(a:input) finally - let &migemodict = save_migemo_dict + let &migemodict = '' endtry elseif executable('cmigemo') " Use cmigemo.