diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2024-04-09 23:19:17 +0200 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2024-04-09 23:43:42 +0200 |
commit | d4956e16d9e510b0f8aa9d65ef98ea36dfc5613d (patch) | |
tree | 704e842e0ab19d4980f11e62492047ed820499b6 /src/nvim/move.c | |
parent | 832857ae094743bd17e36a0096d1da38fc383178 (diff) | |
download | rneovim-d4956e16d9e510b0f8aa9d65ef98ea36dfc5613d.tar.gz rneovim-d4956e16d9e510b0f8aa9d65ef98ea36dfc5613d.tar.bz2 rneovim-d4956e16d9e510b0f8aa9d65ef98ea36dfc5613d.zip |
vim-patch:9.1.0294: Text height function does not respect it's argument
Problem: plines_m_win() does not take into account it's "limit_winheight"
argument for filler lines below the last line of the buffer.
(after v9.1.0280)
Solution: Check window height when "limit_winheight" is TRUE.
(Luuk van Baal)
https://github.com/vim/vim/commit/08b0f632c125514fe0ea188c36ac048d7d7929d4
Diffstat (limited to 'src/nvim/move.c')
-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 f3a79c08bf..c055f6baad 100644 --- a/src/nvim/move.c +++ b/src/nvim/move.c @@ -2464,7 +2464,7 @@ int pagescroll(Direction dir, int count, bool half) if (dir == FORWARD) { 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, true); + n += plines_m_win(curwin, curwin->w_topline + 1, buflen, false); } if (n - count < curwin->w_height_inner) { count = n - curwin->w_height_inner; |