commit 9aaff1848984ac688b8121a615ee5507f7496949
parent b2ed439bd5ab1b431bb61f8754554c48453495c5
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon, 20 Jun 2022 20:48:32 +0800
vim-patch:8.2.5138: various small issues
Problem: Various small issues.
Solution: Various small improvments.
https://github.com/vim/vim/commit/8088ae95bbed2085c5fb196850c4e4b8df55c989
N/A patches for version.c:
vim-patch:8.2.5107: some callers of rettv_list_alloc() check for not OK
Problem: Some callers of rettv_list_alloc() check for not OK. (Christ van
Willegen)
Solution: Use "==" instead of "!=" when checking the return value.
https://github.com/vim/vim/commit/93a1096fe48e12095544924adb267e3b8a16b221
Diffstat:
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/nvim/move.c b/src/nvim/move.c
@@ -1518,12 +1518,10 @@ void set_empty_rows(win_T *wp, int used)
}
}
-/*
- * Recompute topline to put the cursor at the bottom of the window.
- * Scroll at least "min_scroll" lines.
- * If "set_topbot" is true, set topline and botline first (for "zb").
- * This is messy stuff!!!
- */
+/// Recompute topline to put the cursor at the bottom of the window.
+/// When scrolling scroll at least "min_scroll" lines.
+/// If "set_topbot" is true, set topline and botline first (for "zb").
+/// This is messy stuff!!!
void scroll_cursor_bot(int min_scroll, int set_topbot)
{
int used;