To: vim_dev@googlegroups.com Subject: Patch 9.0.0797 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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) .. "\\", "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) .. "\\", "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) .. "\\", "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) .. "\\", "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) .. "\\", "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) .. "\\", "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 -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///