changeset 18846:67eb9bc32434 v8.1.2410

patch 8.1.2410: MS-Windows: test_iminsert fails without IME support Commit: https://github.com/vim/vim/commit/e2a3f36bf22bfa00343c6a7aaef5337a9dfc0993 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 7 21:40:48 2019 +0100 patch 8.1.2410: MS-Windows: test_iminsert fails without IME support Problem: MS-Windows: test_iminsert fails without IME support. Solution: Skip the test when imgetstatus() doesn't work.
author Bram Moolenaar <Bram@vim.org>
date Sat, 07 Dec 2019 21:45:03 +0100
parents a612b0f258a5
children 6ec9c4c37cc3
files src/testdir/test_iminsert.vim src/version.c
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_iminsert.vim
+++ b/src/testdir/test_iminsert.vim
@@ -1,4 +1,5 @@
 source view_util.vim
+source check.vim
 
 let s:imactivatefunc_called = 0
 let s:imstatusfunc_called = 0
@@ -31,7 +32,12 @@ func Test_iminsert2()
   call assert_equal(expected, s:imstatusfunc_called)
 endfunc
 
-func Test_imgetstatus()
+func Test_getimstatus()
+  if has('win32')
+    CheckFeature multi_byte_ime
+  elseif !has('gui_mac')
+    CheckFeature xim
+  endif
   if has('gui_running')
     if !has('win32')
       throw 'Skipped: running in the GUI, only works on MS-Windows'
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2410,
+/**/
     2409,
 /**/
     2408,