diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-02-16 07:41:39 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2023-02-16 08:09:41 +0800 |
| commit | 0bb3a373d32e150af3909e3873be91f34df211dc (patch) | |
| tree | 4dd105e8c45b6f7b47f22afeb18b3bfcc8c0144f /src/nvim/testdir | |
| parent | a2dd7fa97bab06be2b357e34af0ed0a194774d70 (diff) | |
| download | rneovim-0bb3a373d32e150af3909e3873be91f34df211dc.tar.gz rneovim-0bb3a373d32e150af3909e3873be91f34df211dc.tar.bz2 rneovim-0bb3a373d32e150af3909e3873be91f34df211dc.zip | |
vim-patch:9.0.1312: Cursor position wrong when splitting window in insert mode
Problem: Cursor position wrong when splitting window in insert mode.
Solution: Pass the actual mode to win_fix_cursor(). (Luuk van Baal,
closes vim/vim#11999,
https://github.com/vim/vim/commit/bc3dc298b37820a8212e7d839e882e07d6cc98c8
Co-authored-by: Luuk van Baal <luukvbaal@gmail.com>
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_window_cmd.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/nvim/testdir/test_window_cmd.vim b/src/nvim/testdir/test_window_cmd.vim index 4a8a1b11f1..8b9457ae1d 100644 --- a/src/nvim/testdir/test_window_cmd.vim +++ b/src/nvim/testdir/test_window_cmd.vim @@ -1653,14 +1653,7 @@ func Test_splitkeep_options() " Scroll when cursor becomes invalid in insert mode. norm Lic - 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) + call assert_equal(curpos, getcurpos(), 'run ' .. run) " No scroll when topline not equal to 1 only | execute "norm gg5\<C-e>" | split | wincmd k |