Fix to use current &migemodict value if it exists
This commit is contained in:
parent
ef386352b0
commit
bd03c22f75
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user