# HG changeset patch # User Bram Moolenaar # Date 1666188907 -7200 # Node ID 372b1248008225ac13c521ee7453c3b41c8645f0 # Parent c3cc9609b2fc73e47dd16fad66565766307e1abd patch 9.0.0797: order of assert function arguments is reverted Commit: https://github.com/vim/vim/commit/df63f05c3a81f726ee9fbfc4954eb675e287c7f7 Author: zeertzjq Date: Wed Oct 19 15:12:54 2022 +0100 patch 9.0.0797: order of assert function arguments is reverted Problem: Order of assert function arguments is reverted. Solution: Swap the arguments. (closes https://github.com/vim/vim/issues/11399) diff --git a/src/testdir/test_termcodes.vim b/src/testdir/test_termcodes.vim --- a/src/testdir/test_termcodes.vim +++ b/src/testdir/test_termcodes.vim @@ -1338,7 +1338,7 @@ func Test_term_mouse_popup_menu_setpos() \ .. MouseRightReleaseCode(1, 10) .. "\\", "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) .. "\\", "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) .. "\\", "x") call assert_equal(2, winnr(), msg) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 797, +/**/ 796, /**/ 795,