diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-05-18 07:00:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-18 07:00:29 +0800 |
commit | 5947f249f838eb56f8d186e69f4f58e9dee009ed (patch) | |
tree | ac90955ff4ea4a664e287666543971ab87723236 /src | |
parent | 5f9e7edae6b8d56dd44b41dee02b8e9411572b58 (diff) | |
download | rneovim-5947f249f838eb56f8d186e69f4f58e9dee009ed.tar.gz rneovim-5947f249f838eb56f8d186e69f4f58e9dee009ed.tar.bz2 rneovim-5947f249f838eb56f8d186e69f4f58e9dee009ed.zip |
fix(move): half-page scrolling with resized grid at eob (#28821)
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/move.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c index 074eb0354c..418ece09ed 100644 --- a/src/nvim/move.c +++ b/src/nvim/move.c @@ -2488,7 +2488,7 @@ int pagescroll(Direction dir, int count, bool half) int curscount = count; // Adjust count so as to not reveal end of buffer lines. if (dir == FORWARD - && (curwin->w_topline + curwin->w_height + count > buflen || hasAnyFolding(curwin))) { + && (curwin->w_topline + curwin->w_height_inner + count > buflen || hasAnyFolding(curwin))) { int n = plines_correct_topline(curwin, curwin->w_topline, NULL, false, NULL); if (n - count < curwin->w_height_inner && curwin->w_topline < buflen) { n += plines_m_win(curwin, curwin->w_topline + 1, buflen, curwin->w_height_inner + count); |