diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-22 09:14:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-22 09:14:42 +0800 |
commit | dc110cba3c0d48d7c9dbb91900f8be0cf6cf0c9b (patch) | |
tree | a534155ed127b0c6b4f22ea86150c4e0c045d62a /src/nvim/diff.c | |
parent | 15c6909bb198ca8a1a22405a4a7e96357716e57e (diff) | |
parent | 58cc66ee1f066127c33157b91c64d9b125a96621 (diff) | |
download | rneovim-dc110cba3c0d48d7c9dbb91900f8be0cf6cf0c9b.tar.gz rneovim-dc110cba3c0d48d7c9dbb91900f8be0cf6cf0c9b.tar.bz2 rneovim-dc110cba3c0d48d7c9dbb91900f8be0cf6cf0c9b.zip |
Merge pull request #26970 from famiu/refactor/options/set_option_direct
refactor(options): remove `set_string_option_direct()`
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r-- | src/nvim/diff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c index 39d9e9e978..ea846b46ec 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -1438,7 +1438,8 @@ void diff_win_options(win_T *wp, bool addbuf) } wp->w_p_fdm_save = xstrdup(wp->w_p_fdm); } - set_string_option_direct_in_win(wp, kOptFoldmethod, "diff", OPT_LOCAL, 0); + set_option_direct_for(kOptFoldmethod, STATIC_CSTR_AS_OPTVAL("diff"), OPT_LOCAL, 0, kOptReqWin, + wp); if (!wp->w_p_diff) { wp->w_p_fen_save = wp->w_p_fen; |