diff src/testdir/test_iminsert.vim @ 21112:2d3cd9acf853 v8.2.1107

patch 8.2.1107: 'imactivatefunc' and 'imstatusfunc' are not used in the GUI Commit: https://github.com/vim/vim/commit/ef8c617b9c4dc262ed34598d7e382237696c3d61 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 1 15:12:44 2020 +0200 patch 8.2.1107: 'imactivatefunc' and 'imstatusfunc' are not used in the GUI Problem: 'imactivatefunc' and 'imstatusfunc' are not used in the GUI. Solution: Adjust the #ifdefs. (closes https://github.com/vim/vim/issues/6367)
author Bram Moolenaar <Bram@vim.org>
date Wed, 01 Jul 2020 15:15:04 +0200
parents 505d97ea54da
children 484c27f2e98c
line wrap: on
line diff
--- a/src/testdir/test_iminsert.vim
+++ b/src/testdir/test_iminsert.vim
@@ -27,7 +27,7 @@ func Test_iminsert2()
   set imactivatefunc=
   set imstatusfunc=
 
-  let expected = has('gui_running') ? 0 : 1
+  let expected = has('gui_win32') ? 0 : 1
   call assert_equal(expected, s:imactivatefunc_called)
   call assert_equal(expected, s:imstatusfunc_called)
 endfunc
@@ -38,10 +38,7 @@ func Test_getimstatus()
   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'
-    endif
+  if has('gui_win32')
     set imactivatefunc=
     set imstatusfunc=
   else