fix(options): fix :setglobal not working for 'spelloptions' (#30894)

This commit is contained in:
zeertzjq
2024-10-22 11:34:09 +08:00
committed by GitHub
parent f663243e95
commit 1b9dafa67b
4 changed files with 59 additions and 4 deletions

View File

@@ -5325,6 +5325,7 @@ void buf_copy_options(buf_T *buf, int flags)
COPY_OPT_SCTX(buf, BV_SPL);
buf->b_s.b_p_spo = xstrdup(p_spo);
COPY_OPT_SCTX(buf, BV_SPO);
buf->b_s.b_p_spo_flags = spo_flags;
buf->b_p_inde = xstrdup(p_inde);
COPY_OPT_SCTX(buf, BV_INDE);
buf->b_p_indk = xstrdup(p_indk);