vim-patch:8.2.3567: CTRL-I in Insert mode is not tested

Problem:    CTRL-I in Insert mode is not tested
Solution:   Add a test case. (Dominique Pellé, closes vim/vim#8866)
9cd063e319
This commit is contained in:
zeertzjq
2022-09-22 13:14:12 +08:00
parent 3f4030e171
commit 320e56a4e0

View File

@@ -1963,4 +1963,21 @@ func Test_edit_put_CTRL_E()
set encoding=utf-8
endfunc
" Test toggling of input method. See :help i_CTRL-^
func Test_edit_CTRL_hat()
CheckFeature xim
CheckNotGui " FIXME: why does this test fail when running in the GUI?
new
call assert_equal(0, &iminsert)
call feedkeys("i\<C-^>", 'xt')
call assert_equal(2, &iminsert)
call feedkeys("i\<C-^>", 'xt')
call assert_equal(0, &iminsert)
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab