]> granicus.if.org Git - vim/commitdiff
patch 9.0.0797: order of assert function arguments is reverted v9.0.0797
authorzeertzjq <zeertzjq@outlook.com>
Wed, 19 Oct 2022 14:12:54 +0000 (15:12 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 19 Oct 2022 14:12:54 +0000 (15:12 +0100)
Problem:    Order of assert function arguments is reverted.
Solution:   Swap the arguments. (closes #11399)

src/testdir/test_termcodes.vim
src/version.c

index 8bf2fe3c1160975c2eee3c47cd088faa677c9a72..92bd4cd75be8c9537a04ea2b9a5966851a027662 100644 (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)
index 7ee612d589ca29126a569f6ed9945cfc959b5822..bf4994622bbc761e0fd63cf0ec7f2d83cda84e93 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    797,
 /**/
     796,
 /**/