We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0cb1763 + c1b2de0 commit 00f5088Copy full SHA for 00f5088
1 file changed
autoload/eskk.vim
@@ -428,7 +428,11 @@ function! s:asym_filter(stash) abort "{{{
428
call s:do_cancel(a:stash)
429
return
430
elseif char ==# "\<Esc>"
431
- call s:do_escape(a:stash)
+ if mode() ==# 'c' && !preedit.empty()
432
+ call s:do_cancel(a:stash)
433
+ else
434
+ call s:do_escape(a:stash)
435
+ endif
436
437
endif
438
@@ -770,7 +774,9 @@ endfunction "}}}
770
774
function! s:do_cancel(stash) abort "{{{
771
775
let preedit = a:stash.preedit
772
776
if mode() ==# 'c'
773
- call preedit.push_filter_pre_char("\<Esc>")
777
+ call preedit.set_henkan_phase(g:eskk#preedit#PHASE_NORMAL)
778
+ call preedit.clear_all()
779
+ call preedit.push_filter_post_char("\<Esc>")
780
else
781
call preedit.set_henkan_phase(g:eskk#preedit#PHASE_NORMAL)
782
call preedit.clear_all()
0 commit comments