From 9aaff1848984ac688b8121a615ee5507f7496949 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 20 Jun 2022 20:48:32 +0800 Subject: 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 --- src/nvim/move.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/nvim/move.c b/src/nvim/move.c index 9d0099a2f8..cc811fca18 100644 --- 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; -- cgit