aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-02-16 07:41:09 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-02-16 08:09:41 +0800
commita2dd7fa97bab06be2b357e34af0ed0a194774d70 (patch)
tree6434a35242ab2dbf471fa0c65c8ca19ea018a97f
parent968cd1ed933c039b8d60b0110bc6b539c71e387d (diff)
downloadrneovim-a2dd7fa97bab06be2b357e34af0ed0a194774d70.tar.gz
rneovim-a2dd7fa97bab06be2b357e34af0ed0a194774d70.tar.bz2
rneovim-a2dd7fa97bab06be2b357e34af0ed0a194774d70.zip
vim-patch:9.0.1310: 'splitkeep' test has failures
Problem: 'splitkeep' test has failures. Solution: Adjust expected cursor line position. https://github.com/vim/vim/commit/fdbd14e89207dca95549f298ee468793da852086 Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--src/nvim/testdir/test_window_cmd.vim11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_window_cmd.vim b/src/nvim/testdir/test_window_cmd.vim
index c25b1f1157..4a8a1b11f1 100644
--- a/src/nvim/testdir/test_window_cmd.vim
+++ b/src/nvim/testdir/test_window_cmd.vim
@@ -1651,9 +1651,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