summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2024-01-25 21:23:22 +0100
committerChristian Brabandt <cb@256bit.org>2024-01-25 21:23:22 +0100
commit12b927767213502469284bc133f69b4d0da776cb (patch)
tree2fbae59b70526056951eefe2edb09cce0c38b2fd /src
parentfa8c9715587a24562dd755c44dc13aef43d7d875 (diff)
patch 9.1.0053: MS-Windows: Key event test still failsv9.1.0053
Problem: MS-Windows: Key event test still fails Solution: Catch more interrupts (after 9.1.0051) Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src')
-rw-r--r--src/testdir/test_mswin_event.vim21
-rw-r--r--src/version.c2
2 files changed, 15 insertions, 8 deletions
diff --git a/src/testdir/test_mswin_event.vim b/src/testdir/test_mswin_event.vim
index 10e7a812e0..950fc61ea1 100644
--- 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 <Ctrl-A> to <Ctrl-Z> keys
- " Expect the unicode characters 0x01 to 0x1A
+" Test for <Ctrl-A> to <Ctrl-Z> 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
index 8b278c5d97..a8dba0e782 100644
--- 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,