diff options
author | Lewis Russell <lewis6991@gmail.com> | 2025-01-08 17:56:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-08 17:56:21 +0000 |
commit | c4b658fed8d96a4c4098ce59b01b228ef0bda62e (patch) | |
tree | 50f10b101e425a04c646d5970eed88a4318f2069 /src/nvim/diff.c | |
parent | 17b46d01e29443452ae8b607017f8f5c585d3f0a (diff) | |
parent | 6257270040bc5c61a489f7fb9d4102223c36cf89 (diff) | |
download | rneovim-c4b658fed8d96a4c4098ce59b01b228ef0bda62e.tar.gz rneovim-c4b658fed8d96a4c4098ce59b01b228ef0bda62e.tar.bz2 rneovim-c4b658fed8d96a4c4098ce59b01b228ef0bda62e.zip |
Merge pull request #31112 from famiu/refactor/options/set_option_for
refactor(options): set option value for non-current context directly
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r-- | src/nvim/diff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c index bd98a31a71..ebeb9ba088 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -1391,8 +1391,8 @@ void diff_win_options(win_T *wp, bool addbuf) } wp->w_p_fdm_save = xstrdup(wp->w_p_fdm); } - set_option_direct_for(kOptFoldmethod, STATIC_CSTR_AS_OPTVAL("diff"), OPT_LOCAL, 0, - kOptScopeWin, wp); + set_option_direct_for(kOptFoldmethod, STATIC_CSTR_AS_OPTVAL("diff"), + option_ctx_from(kOptScopeWin, wp), OPT_LOCAL, 0); if (!wp->w_p_diff) { wp->w_p_fen_save = wp->w_p_fen; |