# HG changeset patch # User Christian Brabandt # Date 1706214602 -3600 # Node ID 9ec1021cc7f1afe5aac3fb2bfd8abfc428391f12 # Parent f701898581271bfb33cb2c0ccc18d0ef1878416b patch 9.1.0053: MS-Windows: Key event test still fails Commit: https://github.com/vim/vim/commit/12b927767213502469284bc133f69b4d0da776cb Author: Christian Brabandt Date: Thu Jan 25 21:23:22 2024 +0100 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 diff --git a/src/testdir/test_mswin_event.vim b/src/testdir/test_mswin_event.vim --- a/src/testdir/test_mswin_event.vim +++ b/src/testdir/test_mswin_event.vim @@ -468,16 +468,21 @@ func Test_mswin_event_character_keys() endfor endfor - " Test for to keys - " Expect the unicode characters 0x01 to 0x1A +" Test for to keys +" 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 kc in range(65, 90) - call SendKeyGroup([modkey, kc]) - let ch = Getcharstr() - call assert_equal(nr2char(kc - 64), ch) - call SendKeyWithModifiers(kc, s:MOD_MASK_CTRL) - let ch = Getcharstr() - call assert_equal(nr2char(kc - 64), ch) + try + call SendKeyGroup([modkey, kc]) + let ch = Getcharstr() + call assert_equal(nr2char(kc - 64), ch) + call SendKeyWithModifiers(kc, s:MOD_MASK_CTRL) + let ch = Getcharstr() + call assert_equal(nr2char(kc - 64), ch) + catch /^Vim:Interrupt$/ + " ignore + endtry endfor endfor diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -705,6 +705,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 53, +/**/ 52, /**/ 51,