mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
vim-patch:9.0.1710: scrolloff options work slightly different
Problem: sidescrolloff and scrolloff options work slightly
different than other global-local options
Solution: Make it behave consistent for all global-local options
It was noticed, that sidescrolloff and scrolloff options behave
differently in comparison to other global-local window options like
'listchars'
So make those two behave like other global-local options. Also add some
extra documentation for a few special local-window options.
Add a few tests to make sure all global-local window options behave
similar
closes: vim/vim#12956
closes: vim/vim#12643
4a8eb6e7a9
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -230,6 +230,10 @@ typedef struct {
|
||||
#define w_p_crb_save w_onebuf_opt.wo_crb_save
|
||||
char *wo_scl;
|
||||
#define w_p_scl w_onebuf_opt.wo_scl // 'signcolumn'
|
||||
long wo_siso;
|
||||
#define w_p_siso w_onebuf_opt.wo_siso // 'sidescrolloff' local value
|
||||
long wo_so;
|
||||
#define w_p_so w_onebuf_opt.wo_so // 'scrolloff' local value
|
||||
char *wo_winhl;
|
||||
#define w_p_winhl w_onebuf_opt.wo_winhl // 'winhighlight'
|
||||
char *wo_lcs;
|
||||
@@ -1321,8 +1325,6 @@ struct window_S {
|
||||
uint32_t w_p_fdt_flags; // flags for 'foldtext'
|
||||
int *w_p_cc_cols; // array of columns to highlight or NULL
|
||||
uint8_t w_p_culopt_flags; // flags for cursorline highlighting
|
||||
long w_p_siso; // 'sidescrolloff' local value
|
||||
long w_p_so; // 'scrolloff' local value
|
||||
|
||||
int w_briopt_min; // minimum width for breakindent
|
||||
int w_briopt_shift; // additional shift for breakindent
|
||||
|
Reference in New Issue
Block a user