]> granicus.if.org Git - vim/commitdiff
patch 9.0.1310: 'splitkeep' test has failures v9.0.1310
authorBram Moolenaar <Bram@vim.org>
Tue, 14 Feb 2023 21:56:42 +0000 (21:56 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 14 Feb 2023 21:56:42 +0000 (21:56 +0000)
Problem:    'splitkeep' test has failures.
Solution:   Adjust expected cursor line position.

src/testdir/test_window_cmd.vim
src/version.c

index a97ccba2dee6485a91f65b9dd12451863ac30e25..1441db5845f3bde8ead21a2cf3ce52b9e2f5a351 100644 (file)
@@ -1751,9 +1751,16 @@ func Test_splitkeep_options()
     call assert_equal(1, line("w0"))
     call assert_equal(curpos, getcurpos())
 
-    " Scroll when cursor becomes invalid in insert mode
+    " Scroll when cursor becomes invalid in insert mode.
     norm Lic
-    call assert_equal(curpos, getcurpos())
+    call assert_equal(curpos[0], getcurpos()[0], 'run ' .. run)
+
+    " The line number might be one less because of round-off.
+    call assert_inrange(curpos[1] - 1, curpos[1], getcurpos()[1], 'run ' .. run)
+
+    call assert_equal(curpos[2], getcurpos()[2], 'run ' .. run)
+    call assert_equal(curpos[3], getcurpos()[3], 'run ' .. run)
+    call assert_equal(curpos[4], getcurpos()[4], 'run ' .. run)
 
     " No scroll when topline not equal to 1
     only | execute "norm gg5\<C-e>" | split | wincmd k
index 3303bef4a6c4a6782eabb0f92425c472c94bf4ac..a6451cb6a134b8cd04d393dc922e6e907349f0fd 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1310,
 /**/
     1309,
 /**/