changeset 30926:372b12480082 v9.0.0797

patch 9.0.0797: order of assert function arguments is reverted Commit: https://github.com/vim/vim/commit/df63f05c3a81f726ee9fbfc4954eb675e287c7f7 Author: zeertzjq <zeertzjq@outlook.com> 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)
author Bram Moolenaar <Bram@vim.org>
date Wed, 19 Oct 2022 16:15:07 +0200
parents c3cc9609b2fc
children b38da2222975
files src/testdir/test_termcodes.vim src/version.c
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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) .. "\<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)
--- 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,