refactor: pass the window to get_(side)scrolloff_value

to less rely on curwin
This commit is contained in:
Matthieu Coudron
2020-12-23 16:21:10 +01:00
parent 5ce328df40
commit 4d9520ec86
7 changed files with 22 additions and 20 deletions

View File

@@ -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