]> granicus.if.org Git - vim/commitdiff
patch 8.2.3567: CTRL-I in Insert mode is not tested v8.2.3567
authorDominique Pelle <dominique.pelle@gmail.com>
Thu, 28 Oct 2021 20:06:05 +0000 (21:06 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 28 Oct 2021 20:06:05 +0000 (21:06 +0100)
Problem:    CTRL-I in Insert mode is not tested
Solution:   Add a test case. (Dominique PellĂ©, closes #8866)

src/testdir/test_edit.vim
src/version.c

index f0f04f0491620370e3244d2d336a893952ce6617..6c76086a918c35d5f4223b39ff9c10ca76c51bbb 100644 (file)
@@ -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
index 570b7d067e990068bbcba5a9351c4f7ddf8673b4..68372cc05f3c111154b7d54bd092752f1b77993f 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3567,
 /**/
     3566,
 /**/