patch 9.1.1808: Option insecure flags not copied when splitting window
Problem: Option insecure flags not copied when splitting window.
Solution: Move window-local insecure flags to winopt_T and copy them
properly (zeertzjq).
closes: #18434
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
fec5586a45
commit
b3740f4b00
@ -1020,7 +1020,7 @@ eval_foldexpr(win_T *wp, int *cp)
|
||||
varnumber_T retval;
|
||||
char_u *s;
|
||||
sctx_T saved_sctx = current_sctx;
|
||||
int use_sandbox = was_set_insecurely((char_u *)"foldexpr",
|
||||
int use_sandbox = was_set_insecurely(wp, (char_u *)"foldexpr",
|
||||
OPT_LOCAL);
|
||||
|
||||
arg = skipwhite(wp->w_p_fde);
|
||||
|
||||
Reference in New Issue
Block a user