forked from aniani/vim
patch 9.1.0407: Stuck with long line and half-page scrolling
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'.
fixes: #14743
closes: #14746
Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
031a745608
commit
58448e09be
@@ -4260,4 +4260,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
|
||||
|
||||
Reference in New Issue
Block a user