mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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:
@@ -2932,6 +2932,8 @@ struct window_S
|
||||
int w_p_brishift; /* additional shift for breakindent */
|
||||
int w_p_brisbr; /* sbr in 'briopt' */
|
||||
#endif
|
||||
long w_p_siso; /* 'sidescrolloff' local value */
|
||||
long w_p_so; /* 'scrolloff' local value */
|
||||
|
||||
/* transform a pointer to a "onebuf" option into a "allbuf" option */
|
||||
#define GLOBAL_WO(p) ((char *)p + sizeof(winopt_T))
|
||||
|
Reference in New Issue
Block a user