forked from aniani/vim
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.
This commit is contained in:
@@ -1252,6 +1252,11 @@ func Test_gui_mouse_move_event()
|
|||||||
call test_gui_event('mouse', args)
|
call test_gui_event('mouse', args)
|
||||||
call feedkeys('', 'Lx!')
|
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)
|
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
|
" wiggle the mouse around within a screen cell, shouldn't trigger events
|
||||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4966,
|
||||||
/**/
|
/**/
|
||||||
4965,
|
4965,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user