Skip to content

Commit 12b9277

Browse files
committed
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>
1 parent fa8c971 commit 12b9277

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

src/testdir/test_mswin_event.vim

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -468,16 +468,21 @@ func Test_mswin_event_character_keys()
468468
endfor
469469
endfor
470470

471-
" Test for <Ctrl-A> to <Ctrl-Z> keys
472-
" Expect the unicode characters 0x01 to 0x1A
471+
" Test for <Ctrl-A> to <Ctrl-Z> keys
472+
" Expect the unicode characters 0x01 to 0x1A
473+
" Note: May cause an Interrupt to be triggered for Ctrl-C
473474
for modkey in [s:VK.CONTROL, s:VK.LCONTROL, s:VK.RCONTROL]
474475
for kc in range(65, 90)
475-
call SendKeyGroup([modkey, kc])
476-
let ch = Getcharstr()
477-
call assert_equal(nr2char(kc - 64), ch)
478-
call SendKeyWithModifiers(kc, s:MOD_MASK_CTRL)
479-
let ch = Getcharstr()
480-
call assert_equal(nr2char(kc - 64), ch)
476+
try
477+
call SendKeyGroup([modkey, kc])
478+
let ch = Getcharstr()
479+
call assert_equal(nr2char(kc - 64), ch)
480+
call SendKeyWithModifiers(kc, s:MOD_MASK_CTRL)
481+
let ch = Getcharstr()
482+
call assert_equal(nr2char(kc - 64), ch)
483+
catch /^Vim:Interrupt$/
484+
" ignore
485+
endtry
481486
endfor
482487
endfor
483488

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
53,
707709
/**/
708710
52,
709711
/**/

0 commit comments

Comments
 (0)