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')
|
if has('migemo')
|
||||||
" Use migemo().
|
" Use migemo().
|
||||||
let save_migemo_dict = &migemodict
|
if &migemodict !=# ''
|
||||||
|
return migemo(a:input)
|
||||||
|
endif
|
||||||
let &migemodict = s:migemodict
|
let &migemodict = s:migemodict
|
||||||
try
|
try
|
||||||
return migemo(a:input)
|
return migemo(a:input)
|
||||||
finally
|
finally
|
||||||
let &migemodict = save_migemo_dict
|
let &migemodict = ''
|
||||||
endtry
|
endtry
|
||||||
elseif executable('cmigemo')
|
elseif executable('cmigemo')
|
||||||
" Use cmigemo.
|
" Use cmigemo.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user