mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +00:00
refactor: pass the window to get_(side)scrolloff_value
to less rely on curwin
This commit is contained in:
@@ -7362,7 +7362,7 @@ static void ex_syncbind(exarg_T *eap)
|
||||
topline = curwin->w_topline;
|
||||
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
|
||||
if (wp->w_p_scb && wp->w_buffer) {
|
||||
y = wp->w_buffer->b_ml.ml_line_count - get_scrolloff_value();
|
||||
y = wp->w_buffer->b_ml.ml_line_count - get_scrolloff_value(curwin);
|
||||
if (topline > y) {
|
||||
topline = y;
|
||||
}
|
||||
|
Reference in New Issue
Block a user