aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-06-20 20:48:32 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-06-20 20:51:11 +0800
commit9aaff1848984ac688b8121a615ee5507f7496949 (patch)
treeb362f6419925eb062ade4a2b063d5265c0a513d9
parentb2ed439bd5ab1b431bb61f8754554c48453495c5 (diff)
downloadrneovim-9aaff1848984ac688b8121a615ee5507f7496949.tar.gz
rneovim-9aaff1848984ac688b8121a615ee5507f7496949.tar.bz2
rneovim-9aaff1848984ac688b8121a615ee5507f7496949.zip
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
-rw-r--r--src/nvim/move.c10
1 files changed, 4 insertions, 6 deletions
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;