From ef386352b0d73cebb7598a61c140fac29bf53a22 Mon Sep 17 00:00:00 2001 From: Kyohei Morihiro Date: Thu, 6 Apr 2017 13:49:48 +0900 Subject: [PATCH] Fix to use migemodict for +migemo --- autoload/EasyMotion/cmigemo.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/autoload/EasyMotion/cmigemo.vim b/autoload/EasyMotion/cmigemo.vim index 7c84e19..898f4c4 100644 --- a/autoload/EasyMotion/cmigemo.vim +++ b/autoload/EasyMotion/cmigemo.vim @@ -92,7 +92,13 @@ function! EasyMotion#cmigemo#getMigemoPattern(input) "{{{ if has('migemo') " Use migemo(). - return migemo(a:input) + let save_migemo_dict = &migemodict + let &migemodict = s:migemodict + try + return migemo(a:input) + finally + let &migemodict = save_migemo_dict + endtry elseif executable('cmigemo') " Use cmigemo. return EasyMotion#cmigemo#system('cmigemo -v -w "'.a:input.'" -d "'.s:migemodict.'"')