changeset 28887:0e207ddd939d v8.2.4966

patch 8.2.4966: MS-Windows GUI: mouse event test gets extra event Commit: https://github.com/vim/vim/commit/e5162e76c0a8bd71fbfb0840a8c0014788d8808b Author: Bram Moolenaar <Bram@vim.org> Date: Mon May 16 16:41:35 2022 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Mon, 16 May 2022 17:45:03 +0200
parents 61caad159521
children 0c101d91090f
files src/testdir/test_gui.vim src/version.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4966,
+/**/
     4965,
 /**/
     4964,