mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 16:28:17 +00:00
refactor: cast to int earlier when using 'so' and 'siso' (#24756)
This commit is contained in:
@@ -6516,7 +6516,7 @@ static void win_fix_cursor(int normal)
|
||||
}
|
||||
|
||||
// Determine valid cursor range.
|
||||
linenr_T so = MIN(wp->w_height_inner / 2, get_scrolloff_value(wp));
|
||||
int so = MIN(wp->w_height_inner / 2, get_scrolloff_value(wp));
|
||||
linenr_T lnum = wp->w_cursor.lnum;
|
||||
|
||||
wp->w_cursor.lnum = wp->w_topline;
|
||||
|
Reference in New Issue
Block a user