forked from aniani/vim
patch 9.0.1543: display errors when making topline shorter
Problem: Display errors when making topline shorter and 'smoothscroll' is
set.
Solution: Reset w_skipcol when the topline becomes shorter than its current
value. (Luuk van Baal, closes #12367)
This commit is contained in:
committed by
Bram Moolenaar
parent
6c018680be
commit
5d01f86d99
@@ -335,9 +335,12 @@ func Test_smoothscroll_wrap_long_line()
|
||||
" than one window. Note that the cursor is at the bottom this time because
|
||||
" Vim prefers to do so if we are scrolling a few lines only.
|
||||
call term_sendkeys(buf, ":call setline(1, ['one', 'two', 'Line' .. (' with lots of text'->repeat(10)) .. ' end', 'four'])\<CR>")
|
||||
" Currently visible lines were replaced, test that the lines and cursor
|
||||
" are correctly displayed.
|
||||
call VerifyScreenDump(buf, 'Test_smooth_long_14', {})
|
||||
call term_sendkeys(buf, "3Gzt")
|
||||
call term_sendkeys(buf, "j")
|
||||
call VerifyScreenDump(buf, 'Test_smooth_long_14', {})
|
||||
call VerifyScreenDump(buf, 'Test_smooth_long_15', {})
|
||||
|
||||
" Repeat the step but this time start it when the line is smooth-scrolled by
|
||||
" one line. This tests that the offset calculation is still correct and
|
||||
@@ -345,7 +348,7 @@ func Test_smoothscroll_wrap_long_line()
|
||||
" screen.
|
||||
call term_sendkeys(buf, "3Gzt")
|
||||
call term_sendkeys(buf, "\<C-E>j")
|
||||
call VerifyScreenDump(buf, 'Test_smooth_long_15', {})
|
||||
call VerifyScreenDump(buf, 'Test_smooth_long_16', {})
|
||||
|
||||
call StopVimInTerminal(buf)
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user