Patch 9.0.0797
Problem:    Order of assert function arguments is reverted.
Solution:   Swap the arguments. (closes #11399)
Files:      src/testdir/test_termcodes.vim


*** ../vim-9.0.0796/src/testdir/test_termcodes.vim      2022-10-14 
12:08:19.312833085 +0100
--- src/testdir/test_termcodes.vim      2022-10-19 15:09:24.366989323 +0100
***************
*** 1338,1344 ****
                \ .. 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)
  
      " Test for right click in multi-line line-wise visual mode inside the 
selection
      let @" = ''
--- 1338,1344 ----
                \ .. 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(1, len(getreg('"', 1, v:true)), msg)
  
      " Test for right click in multi-line line-wise visual mode inside the 
selection
      let @" = ''
***************
*** 1347,1353 ****
                \ .. 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)
  
      " Test for right click in line-wise visual mode outside the selection
      let @" = ''
--- 1347,1353 ----
                \ .. 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(2, len(getreg('"', 1, v:true)), msg)
  
      " Test for right click in line-wise visual mode outside the selection
      let @" = ''
***************
*** 1367,1373 ****
  
      " Try clicking outside the window
      let @" = ''
!     call cursor(7, 2)
      call feedkeys('vee' .. MouseRightClickCode(7, 2)
                \ .. MouseRightReleaseCode(7, 2) .. "\<Down>\<CR>", "x")
      call assert_equal(2, winnr(), msg)
--- 1367,1373 ----
  
      " Try clicking outside the window
      let @" = ''
!     call cursor(2, 2)
      call feedkeys('vee' .. MouseRightClickCode(7, 2)
                \ .. MouseRightReleaseCode(7, 2) .. "\<Down>\<CR>", "x")
      call assert_equal(2, winnr(), msg)
*** ../vim-9.0.0796/src/version.c       2022-10-19 14:48:10.508451674 +0100
--- src/version.c       2022-10-19 15:11:08.698722749 +0100
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     797,
  /**/

-- 
NEIL INNES PLAYED: THE FIRST SELF-DESTRUCTIVE MONK, ROBIN'S LEAST FAVORITE
                   MINSTREL, THE PAGE CRUSHED BY A RABBIT, THE OWNER OF A DUCK
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20221019141322.593361C0792%40moolenaar.net.

Raspunde prin e-mail lui