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/ex_getln.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/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index b15dc2653d..2f2cb3f9e8 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -905,7 +905,7 @@ static uint8_t *command_line_enter(int firstc, int count, int indent, bool clear need_wait_return = false; } - set_string_option_direct(kOptInccommand, s->save_p_icm, OPT_FREE, SID_NONE); + set_string_option_direct(kOptInccommand, s->save_p_icm, 0, SID_NONE); State = s->save_State; if (cmdpreview != save_cmdpreview) { cmdpreview = save_cmdpreview; // restore preview state |