mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 08:18:17 +00:00
refactor: pass the window to get_(side)scrolloff_value
to less rely on curwin
This commit is contained in:
@@ -5859,7 +5859,7 @@ void scroll_to_fraction(win_T *wp, int prev_height)
|
||||
}
|
||||
|
||||
if (wp == curwin) {
|
||||
if (get_scrolloff_value()) {
|
||||
if (get_scrolloff_value(wp)) {
|
||||
update_topline();
|
||||
}
|
||||
curs_columns(false); // validate w_wrow
|
||||
|
Reference in New Issue
Block a user