diff options
author | Christian Brabandt <cb@256bit.org> | 2024-01-25 20:44:49 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-01-25 20:44:49 +0100 |
commit | f6ebaa7ae64edbe2e56d65c2a3f2494301d11acb (patch) | |
tree | 07b247816e53867e7ecca741884d6670ae4de7ad /src/testdir/test_gui.vim | |
parent | 046a0f75d025783a141b85b9e85a34559fd8cf63 (diff) |
patch 9.1.0051: MS-Windows: Key event test failv9.1.0051
Problem: MS-Windows: Key event test fail
(after 9.1.0050)
Solution: Catch Interrupt and return Ctrl-C
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/testdir/test_gui.vim')
-rw-r--r-- | src/testdir/test_gui.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/testdir/test_gui.vim b/src/testdir/test_gui.vim index e7f7c6d830..e13f4c3dc5 100644 --- a/src/testdir/test_gui.vim +++ b/src/testdir/test_gui.vim @@ -1708,7 +1708,11 @@ func Test_gui_lowlevel_keyevent() " Test for <Ctrl-A> to <Ctrl-Z> keys for kc in range(65, 90) call SendKeys([0x11, kc]) - let ch = getcharstr() + try + let ch = getcharstr() + catch /^Vim:Interrupt$/ + let ch = "\<c-c>" + endtry call assert_equal(nr2char(kc - 64), ch) endfor |