diff options
author | luukvbaal <luukvbaal@gmail.com> | 2024-05-11 12:17:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-11 18:17:57 +0800 |
commit | e1a81c8d8bbbe67710980f0e81aa9473e37defee (patch) | |
tree | 435e6a1647fe0cd339b16e43caac0ec2410f6b34 /test/old/testdir/test_normal.vim | |
parent | 7a03cd1dba0eeac361a518ee5d92ff81405c3690 (diff) | |
download | rneovim-e1a81c8d8bbbe67710980f0e81aa9473e37defee.tar.gz rneovim-e1a81c8d8bbbe67710980f0e81aa9473e37defee.tar.bz2 rneovim-e1a81c8d8bbbe67710980f0e81aa9473e37defee.zip |
vim-patch:9.1.0407: Stuck with long line and half-page scrolling (#28704)
Problem: No scrolling happens with half-page scrolling with line
filling entire window when 'smoothscroll' is disabled.
(Mathias Rav, after v9.1.0285)
Solution: Adjust amount to move cursor by so that it is moved the same
number of lines as was scrolled, even when scrolling different
number of lines than requested with 'nosmoothscroll'.
https://github.com/vim/vim/commit/58448e09be497a8abb595ae309b6edfbc8e0e05a
Diffstat (limited to 'test/old/testdir/test_normal.vim')
-rw-r--r-- | test/old/testdir/test_normal.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/old/testdir/test_normal.vim b/test/old/testdir/test_normal.vim index 7f67dcdeb1..0336e43902 100644 --- a/test/old/testdir/test_normal.vim +++ b/test/old/testdir/test_normal.vim @@ -4270,4 +4270,12 @@ func Test_page_cursor_topbot() bwipe! endfunc +" Test for Ctrl-D with long line +func Test_halfpage_longline() + 10new + call setline(1, ['long'->repeat(1000), 'short']) + exe "norm! \<C-D>" + call assert_equal(2, line('.')) + bwipe! +endfunc " vim: shiftwidth=2 sts=2 expandtab nofoldenable |