From 2daeb25a2a64c0fe6de7d4759d16eb570796992f Mon Sep 17 00:00:00 2001 From: ichizok Date: Tue, 7 Jul 2020 18:59:51 +0900 Subject: [PATCH] Fix test_iminsert in the GUI --- src/testdir/test_iminsert.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/testdir/test_iminsert.vim b/src/testdir/test_iminsert.vim index 80088c3c07..3755c6de7a 100644 --- 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('win32') && has('gui_running')) ? 0 : 1 + let expected = ((has('win32') || has('gui_macvim')) && has('gui_running')) ? 0 : 1 call assert_equal(expected, s:imactivatefunc_called) call assert_equal(expected, s:imstatusfunc_called) endfunc @@ -35,6 +35,8 @@ endfunc func Test_getimstatus() if has('win32') CheckFeature multi_byte_ime + elseif has('gui_macvim') + CheckNotGui elseif !has('gui_mac') CheckFeature xim endif