mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.5138: various small issues
Problem: Various small issues. Solution: Various small improvments.
This commit is contained in:
@@ -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!!!
|
||||
*/
|
||||
|
Reference in New Issue
Block a user