forked from aniani/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 #8866)
This commit is contained in:
committed by
Bram Moolenaar
parent
44db603f69
commit
9cd063e319
@@ -2034,4 +2034,21 @@ func Test_mode_changes()
|
||||
unlet! g:i_to_any
|
||||
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
|
||||
|
||||
@@ -757,6 +757,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
3567,
|
||||
/**/
|
||||
3566,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user