Skip to content

Commit

Permalink
patch 9.0.0797: order of assert function arguments is reverted
Browse files Browse the repository at this point in the history
Problem:    Order of assert function arguments is reverted.
Solution:   Swap the arguments. (closes #11399)
  • Loading branch information
zeertzjq authored and brammool committed Oct 19, 2022
1 parent 060b838 commit df63f05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/testdir/test_termcodes.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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 @" = ''
Expand All @@ -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 @" = ''
Expand All @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
797,
/**/
796,
/**/
Expand Down

0 comments on commit df63f05

Please sign in to comment.