diff options
author | Famiu Haque <famiuhaque@proton.me> | 2024-01-10 04:15:22 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-10 06:15:22 +0800 |
commit | 10f36af84d4ccb0b626cd6c79c6ba2f2735a56fd (patch) | |
tree | cffc1614f18b97712a9fb332deba53a7b21dc0a4 /src/nvim/diff.c | |
parent | 501cf323575864c847be892da1197daa8c3771a1 (diff) | |
download | rneovim-10f36af84d4ccb0b626cd6c79c6ba2f2735a56fd.tar.gz rneovim-10f36af84d4ccb0b626cd6c79c6ba2f2735a56fd.tar.bz2 rneovim-10f36af84d4ccb0b626cd6c79c6ba2f2735a56fd.zip |
refactor(options): remove `OPT_FREE` (#26963)
Problem: `OPT_FREE` macro doesn't seem to do anything as `P_ALLOCED`
already handles allocations.
Solution: Remove `OPT_FREE`.
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r-- | src/nvim/diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c index 3e62555fac..f8aed21556 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -1430,7 +1430,7 @@ 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 | OPT_FREE, 0); + set_string_option_direct_in_win(wp, kOptFoldmethod, "diff", OPT_LOCAL, 0); if (!wp->w_p_diff) { wp->w_p_fen_save = wp->w_p_fen; |