forked from aniani/vim
patch 8.1.0864: cannot have a local value for 'scrolloff' and 'sidescrolloff'
Problem: Cannot have a local value for 'scrolloff' and 'sidescrolloff'. (Gary Holloway) Solution: Make 'scrolloff' and 'sidescrolloff' global-local. (mostly by Aron Widforss, closes #3539)
This commit is contained in:
@@ -8923,7 +8923,7 @@ ex_syncbind(exarg_T *eap UNUSED)
|
||||
{
|
||||
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