Fix to use current &migemodict value if it exists

This commit is contained in:
Kyohei Morihiro 2017-04-11 12:40:42 +09:00
parent ef386352b0
commit bd03c22f75

View File

@ -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.