]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.4967: MS-Windows GUI: mouse event test sometimes fails v8.2.4967
authorBram Moolenaar <Bram@vim.org>
Mon, 16 May 2022 16:07:41 +0000 (17:07 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 16 May 2022 16:07:41 +0000 (17:07 +0100)
Problem:    MS-Windows GUI: mouse event test sometimes fails.
Solution:   Ignore one move event only if there is an extra event.

src/testdir/test_gui.vim
src/version.c

index 5561d8417fdd6d8dfbbc23f6c539ab7b28860892..2c08340ffc24f576925e788f3a3666a2c6a341c4 100644 (file)
@@ -1252,8 +1252,8 @@ 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
+  " FIXME: on MS-Windows we get a stray event first
+  if has('win32') && len(g:eventlist) == 3
     let g:eventlist = g:eventlist[1 : ]
   endif
 
index dcb8d728813fc160586049692e6ebfe8694b03ed..6359e0304d6232e16b3deff335be9416893f836e 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4967,
 /**/
     4966,
 /**/