diff options
| author | Bram Moolenaar <Bram@vim.org> | 2022-06-20 11:38:17 +0100 |
|---|---|---|
| committer | Bram Moolenaar <Bram@vim.org> | 2022-06-20 11:38:17 +0100 |
| commit | 8088ae95bbed2085c5fb196850c4e4b8df55c989 (patch) | |
| tree | c1507cdeb643ca125e72d4a1158c2b7ac018c6fa /src/move.c | |
| parent | 509ce0383105d5b516ef2d489adb7c554d3c8f81 (diff) | |
| download | vim-git-8.2.5138.tar.gz | |
patch 8.2.5138: various small issuesv8.2.5138
Problem: Various small issues.
Solution: Various small improvments.
Diffstat (limited to 'src/move.c')
| -rw-r--r-- | src/move.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/move.c b/src/move.c index 5865af8a5..c2e271203 100644 --- a/src/move.c +++ b/src/move.c @@ -315,7 +315,7 @@ update_topline(void) if (curwin->w_cursor.lnum < curwin->w_botline) { if (((long)curwin->w_cursor.lnum - >= (long)curwin->w_botline - *so_ptr + >= (long)curwin->w_botline - *so_ptr #ifdef FEAT_FOLDING || hasAnyFolding(curwin) #endif @@ -378,7 +378,7 @@ update_topline(void) else #endif line_count = curwin->w_cursor.lnum - curwin->w_botline - + 1 + *so_ptr; + + 1 + *so_ptr; if (line_count <= curwin->w_height + 1) scroll_cursor_bot(scrolljump_value(), FALSE); else @@ -1986,7 +1986,7 @@ 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. + * When scrolling scroll at least "min_scroll" lines. * If "set_topbot" is TRUE, set topline and botline first (for "zb"). * This is messy stuff!!! */ |
