changeset 26067:6a55d46e83cd v8.2.3567

patch 8.2.3567: CTRL-I in Insert mode is not tested Commit: https://github.com/vim/vim/commit/9cd063e3195a4c250c8016fa340922ab21fda252 Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Thu Oct 28 21:06:05 2021 +0100 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 https://github.com/vim/vim/issues/8866)
author Bram Moolenaar <Bram@vim.org>
date Thu, 28 Oct 2021 22:15:03 +0200
parents 70cc491acacc
children c2dea259d51d
files src/testdir/test_edit.vim src/version.c
diffstat 2 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_edit.vim
+++ b/src/testdir/test_edit.vim
@@ -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
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3567,
+/**/
     3566,
 /**/
     3565,