From e5162e76c0a8bd71fbfb0840a8c0014788d8808b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 16 May 2022 16:41:35 +0100 Subject: patch 8.2.4966: MS-Windows GUI: mouse event test gets extra event Problem: MS-Windows GUI: mouse event test gets extra event. Solution: Ignore one move event. --- src/testdir/test_gui.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/testdir') diff --git a/src/testdir/test_gui.vim b/src/testdir/test_gui.vim index b390d14bc..5561d8417 100644 --- a/src/testdir/test_gui.vim +++ b/src/testdir/test_gui.vim @@ -1252,6 +1252,11 @@ func Test_gui_mouse_move_event() call test_gui_event('mouse', args) call feedkeys('', 'Lx!') + if has('win32') + " FIXME: on MS-Windows we get a stray event first + let g:eventlist = g:eventlist[1 : ] + endif + call assert_equal([#{row: 4, col: 31}, #{row: 11, col: 31}], g:eventlist) " wiggle the mouse around within a screen cell, shouldn't trigger events -- cgit v1.2.1