1
0
forked from aniani/vim

patch 8.2.4922: mouse test fails on MS-Windows

Problem:    Mouse test fails on MS-Windows.
Solution:   Set 'mousemodel' to "extend".
This commit is contained in:
Bram Moolenaar
2022-05-08 22:49:43 +01:00
parent fe978c2b6b
commit b370771bff
2 changed files with 4 additions and 0 deletions

View File

@@ -1232,9 +1232,11 @@ func Test_edit_MOUSE()
call test_setmouse(4, 3) call test_setmouse(4, 3)
call feedkeys("A\<LeftMouse>\<esc>", 'tnix') call feedkeys("A\<LeftMouse>\<esc>", 'tnix')
call assert_equal([0, 27, 2, 0], getpos('.')) call assert_equal([0, 27, 2, 0], getpos('.'))
set mousemodel=extend
call test_setmouse(5, 3) call test_setmouse(5, 3)
call feedkeys("A\<RightMouse>\<esc>\<esc>", 'tnix') call feedkeys("A\<RightMouse>\<esc>\<esc>", 'tnix')
call assert_equal([0, 28, 2, 0], getpos('.')) call assert_equal([0, 28, 2, 0], getpos('.'))
set mousemodel&
call cursor(1, 100) call cursor(1, 100)
norm! zt norm! zt
" this should move by a screen up, but when the test " this should move by a screen up, but when the test

View File

@@ -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 */
/**/
4922,
/**/ /**/
4921, 4921,
/**/ /**/