forked from aniani/vim
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.
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
source view_util.vim
|
source view_util.vim
|
||||||
|
source check.vim
|
||||||
|
|
||||||
let s:imactivatefunc_called = 0
|
let s:imactivatefunc_called = 0
|
||||||
let s:imstatusfunc_called = 0
|
let s:imstatusfunc_called = 0
|
||||||
@@ -31,7 +32,12 @@ func Test_iminsert2()
|
|||||||
call assert_equal(expected, s:imstatusfunc_called)
|
call assert_equal(expected, s:imstatusfunc_called)
|
||||||
endfunc
|
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('gui_running')
|
||||||
if !has('win32')
|
if !has('win32')
|
||||||
throw 'Skipped: running in the GUI, only works on MS-Windows'
|
throw 'Skipped: running in the GUI, only works on MS-Windows'
|
||||||
|
@@ -742,6 +742,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2410,
|
||||||
/**/
|
/**/
|
||||||
2409,
|
2409,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user