1
0
forked from aniani/vim

patch 9.1.0053: MS-Windows: Key event test still fails

Problem:  MS-Windows: Key event test still fails
Solution: Catch more interrupts
          (after 9.1.0051)

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2024-01-25 21:23:22 +01:00
parent fa8c971558
commit 12b9277672
2 changed files with 15 additions and 8 deletions

View File

@@ -468,16 +468,21 @@ func Test_mswin_event_character_keys()
endfor endfor
endfor endfor
" Test for <Ctrl-A> to <Ctrl-Z> keys " Test for <Ctrl-A> to <Ctrl-Z> keys
" Expect the unicode characters 0x01 to 0x1A " Expect the unicode characters 0x01 to 0x1A
" Note: May cause an Interrupt to be triggered for Ctrl-C
for modkey in [s:VK.CONTROL, s:VK.LCONTROL, s:VK.RCONTROL] for modkey in [s:VK.CONTROL, s:VK.LCONTROL, s:VK.RCONTROL]
for kc in range(65, 90) for kc in range(65, 90)
call SendKeyGroup([modkey, kc]) try
let ch = Getcharstr() call SendKeyGroup([modkey, kc])
call assert_equal(nr2char(kc - 64), ch) let ch = Getcharstr()
call SendKeyWithModifiers(kc, s:MOD_MASK_CTRL) call assert_equal(nr2char(kc - 64), ch)
let ch = Getcharstr() call SendKeyWithModifiers(kc, s:MOD_MASK_CTRL)
call assert_equal(nr2char(kc - 64), ch) let ch = Getcharstr()
call assert_equal(nr2char(kc - 64), ch)
catch /^Vim:Interrupt$/
" ignore
endtry
endfor endfor
endfor endfor

View File

@@ -704,6 +704,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 */
/**/
53,
/**/ /**/
52, 52,
/**/ /**/