mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 17:58:18 +00:00
vim-patch:8.1.0864 Make 'scrolloff' and 'sidescrolloff' options window local (#11854)
Problem: cannot have a local value for 'scrolloff' and 'sidescrolloff'
Author: Bram Moolenar
375e339007
This commit is contained in:
@@ -7367,7 +7367,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 - p_so;
|
||||
y = wp->w_buffer->b_ml.ml_line_count - get_scrolloff_value();
|
||||
if (topline > y) {
|
||||
topline = y;
|
||||
}
|
||||
|
Reference in New Issue
Block a user