mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -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:
parent
060b838488
commit
df63f05c3a
@ -1338,7 +1338,7 @@ func Test_term_mouse_popup_menu_setpos()
|
|||||||
\ .. MouseRightReleaseCode(1, 10) .. "\<Down>\<CR>", "x")
|
\ .. 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([1, 1], [line('.'), col('.')], msg) " After yanking, the cursor goes to 1,1
|
||||||
call assert_equal("V", getregtype('"'), msg)
|
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
|
" Test for right click in multi-line line-wise visual mode inside the selection
|
||||||
let @" = ''
|
let @" = ''
|
||||||
@ -1347,7 +1347,7 @@ func Test_term_mouse_popup_menu_setpos()
|
|||||||
\ .. MouseRightReleaseCode(2, 20) .. "\<Down>\<CR>", "x")
|
\ .. 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([1, 1], [line('.'), col('.')], msg) " After yanking, the cursor goes to 1,1
|
||||||
call assert_equal("V", getregtype('"'), msg)
|
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
|
" Test for right click in line-wise visual mode outside the selection
|
||||||
let @" = ''
|
let @" = ''
|
||||||
@ -1367,7 +1367,7 @@ func Test_term_mouse_popup_menu_setpos()
|
|||||||
|
|
||||||
" Try clicking outside the window
|
" Try clicking outside the window
|
||||||
let @" = ''
|
let @" = ''
|
||||||
call cursor(7, 2)
|
call cursor(2, 2)
|
||||||
call feedkeys('vee' .. MouseRightClickCode(7, 2)
|
call feedkeys('vee' .. MouseRightClickCode(7, 2)
|
||||||
\ .. MouseRightReleaseCode(7, 2) .. "\<Down>\<CR>", "x")
|
\ .. MouseRightReleaseCode(7, 2) .. "\<Down>\<CR>", "x")
|
||||||
call assert_equal(2, winnr(), msg)
|
call assert_equal(2, winnr(), msg)
|
||||||
|
@ -695,6 +695,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
797,
|
||||||
/**/
|
/**/
|
||||||
796,
|
796,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user