1
0
forked from aniani/vim

patch 8.2.2495: text jumps up and down when moving the cursor

Problem:    Text jumps up and down when moving the cursor in a small window
            with wrapping text and 'scrolloff' set.
Solution:   Adjust the computation of w_skipcol. (partly by Ghjuvan Lacambre,
            closes #7813)
This commit is contained in:
Bram Moolenaar
2021-02-10 21:10:12 +01:00
parent 3ff656f6b4
commit 8f33ebfade
3 changed files with 5 additions and 3 deletions

View File

@@ -634,7 +634,7 @@ func Test_breakindent19_sbr_nextpage()
call s:compare_lines(expect, lines)
" Scroll down one screen line
setl scrolloff=5
norm! 5gj
norm! 6gj
redraw!
let lines = s:screen_lines(1, 20)
let expect = [