diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-16 16:41:35 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-16 16:41:35 +0100 |
commit | e5162e76c0a8bd71fbfb0840a8c0014788d8808b (patch) | |
tree | edd2fd1115b01240d729b20e11bfcddd36218b70 /src/testdir/test_gui.vim | |
parent | 7add8d373185a6b20aeeb8c30adb9acc68de66ec (diff) |
patch 8.2.4966: MS-Windows GUI: mouse event test gets extra eventv8.2.4966
Problem: MS-Windows GUI: mouse event test gets extra event.
Solution: Ignore one move event.
Diffstat (limited to 'src/testdir/test_gui.vim')
-rw-r--r-- | src/testdir/test_gui.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_gui.vim b/src/testdir/test_gui.vim index b390d14bc5..5561d8417f 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 |