Merge pull request #325 from kmorihiro/fix/migemodict
Fix to use migemodict for +migemo
This commit is contained in:
commit
f916d602a1
@ -92,7 +92,15 @@ function! EasyMotion#cmigemo#getMigemoPattern(input) "{{{
|
|||||||
|
|
||||||
if has('migemo')
|
if has('migemo')
|
||||||
" Use migemo().
|
" Use migemo().
|
||||||
|
if &migemodict !=# ''
|
||||||
return migemo(a:input)
|
return migemo(a:input)
|
||||||
|
endif
|
||||||
|
let &migemodict = s:migemodict
|
||||||
|
try
|
||||||
|
return migemo(a:input)
|
||||||
|
finally
|
||||||
|
let &migemodict = ''
|
||||||
|
endtry
|
||||||
elseif executable('cmigemo')
|
elseif executable('cmigemo')
|
||||||
" Use cmigemo.
|
" Use cmigemo.
|
||||||
return EasyMotion#cmigemo#system('cmigemo -v -w "'.a:input.'" -d "'.s:migemodict.'"')
|
return EasyMotion#cmigemo#system('cmigemo -v -w "'.a:input.'" -d "'.s:migemodict.'"')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user