1
0
forked from aniani/vim

patch 9.0.1310: 'splitkeep' test has failures

Problem:    'splitkeep' test has failures.
Solution:   Adjust expected cursor line position.
This commit is contained in:
Bram Moolenaar
2023-02-14 21:56:42 +00:00
parent 1d6539cf36
commit fdbd14e892
2 changed files with 11 additions and 2 deletions

View File

@@ -1751,9 +1751,16 @@ func Test_splitkeep_options()
call assert_equal(1, line("w0")) call assert_equal(1, line("w0"))
call assert_equal(curpos, getcurpos()) call assert_equal(curpos, getcurpos())
" Scroll when cursor becomes invalid in insert mode " Scroll when cursor becomes invalid in insert mode.
norm Lic 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 " No scroll when topline not equal to 1
only | execute "norm gg5\<C-e>" | split | wincmd k only | execute "norm gg5\<C-e>" | split | wincmd k

View File

@@ -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 */
/**/
1310,
/**/ /**/
1309, 1309,
/**/ /**/