mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.0.0643: smoothscroll test fails
Problem: Smoothscroll test fails.
Solution: Check if skipcol changed.
b34c4b7863
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
7cc3062e9c
commit
e51e63c9ba
@ -2633,6 +2633,7 @@ static void nv_scroll_line(cmdarg_T *cap)
|
||||
void scroll_redraw(int up, long count)
|
||||
{
|
||||
linenr_T prev_topline = curwin->w_topline;
|
||||
int prev_skipcol = curwin->w_skipcol;
|
||||
int prev_topfill = curwin->w_topfill;
|
||||
linenr_T prev_lnum = curwin->w_cursor.lnum;
|
||||
|
||||
@ -2651,6 +2652,7 @@ void scroll_redraw(int up, long count)
|
||||
// we get stuck at one position. Don't move the cursor up if the
|
||||
// first line of the buffer is already on the screen
|
||||
while (curwin->w_topline == prev_topline
|
||||
&& curwin->w_skipcol == prev_skipcol
|
||||
&& curwin->w_topfill == prev_topfill) {
|
||||
if (up) {
|
||||
if (curwin->w_cursor.lnum > prev_lnum
|
||||
|
Loading…
Reference in New Issue
Block a user