diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2018-12-26 08:57:40 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2018-12-26 08:57:40 +0900 |
commit | ed8443f5340b400a1f03e5e40307f90a145a9357 (patch) | |
tree | 41d489e555ebf2ad8a6648caac40de2c417980c7 /autoload | |
parent | bf33e3c37663c84a3b78de960b9100c7268b6f04 (diff) | |
download | deoplete.nvim-ed8443f5340b400a1f03e5e40307f90a145a9357.zip |
Fix eskk check
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/deoplete/handler.vim | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/autoload/deoplete/handler.vim b/autoload/deoplete/handler.vim index 08b3386..a5ac0a8 100644 --- a/autoload/deoplete/handler.vim +++ b/autoload/deoplete/handler.vim @@ -186,12 +186,18 @@ function! s:is_skip(event) abort \ || (a:event !=# 'Manual' && a:event !=# 'Async' && !auto_complete) \ || (&l:completefunc !=# '' && &l:buftype =~# 'nofile') \ || (a:event !=# 'InsertEnter' && mode() !=# 'i') - \ || (exists('b:eskk') && !empty(b:eskk)) + \ || (exists('b:eskk') && !empty(b:eskk) + \ && !s:check_eskk_phase_henkan()) return 1 endif return 0 endfunction +function! s:check_eskk_phase_henkan() abort + let preedit = eskk#get_preedit() + let phase = preedit.get_henkan_phase() + return phase is g:eskk#preedit#PHASE_HENKAN +endfunction function! s:is_skip_text(event) abort let input = deoplete#util#get_input(a:event) |