0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

patch 9.0.0797: order of assert function arguments is reverted

Problem:    Order of assert function arguments is reverted.
Solution:   Swap the arguments. (closes #11399)
This commit is contained in:
zeertzjq 2022-10-19 15:12:54 +01:00 committed by Bram Moolenaar
parent 060b838488
commit df63f05c3a
2 changed files with 5 additions and 3 deletions

View File

@ -1338,7 +1338,7 @@ func Test_term_mouse_popup_menu_setpos()
\ .. MouseRightReleaseCode(1, 10) .. "\<Down>\<CR>", "x")
call assert_equal([1, 1], [line('.'), col('.')], msg) " After yanking, the cursor goes to 1,1
call assert_equal("V", getregtype('"'), msg)
call assert_equal(len(getreg('"', 1, v:true)), 1, msg)
call assert_equal(1, len(getreg('"', 1, v:true)), msg)
" Test for right click in multi-line line-wise visual mode inside the selection
let @" = ''
@ -1347,7 +1347,7 @@ func Test_term_mouse_popup_menu_setpos()
\ .. MouseRightReleaseCode(2, 20) .. "\<Down>\<CR>", "x")
call assert_equal([1, 1], [line('.'), col('.')], msg) " After yanking, the cursor goes to 1,1
call assert_equal("V", getregtype('"'), msg)
call assert_equal(len(getreg('"', 1, v:true)), 2, msg)
call assert_equal(2, len(getreg('"', 1, v:true)), msg)
" Test for right click in line-wise visual mode outside the selection
let @" = ''
@ -1367,7 +1367,7 @@ func Test_term_mouse_popup_menu_setpos()
" Try clicking outside the window
let @" = ''
call cursor(7, 2)
call cursor(2, 2)
call feedkeys('vee' .. MouseRightClickCode(7, 2)
\ .. MouseRightReleaseCode(7, 2) .. "\<Down>\<CR>", "x")
call assert_equal(2, winnr(), msg)

View File

@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
797,
/**/
796,
/**/