From 10f36af84d4ccb0b626cd6c79c6ba2f2735a56fd Mon Sep 17 00:00:00 2001 From: Famiu Haque Date: Wed, 10 Jan 2024 04:15:22 +0600 Subject: 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`. --- src/nvim/quickfix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/quickfix.c') diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 3683679daa..6dc45cffcf 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -5091,7 +5091,7 @@ void ex_cfile(exarg_T *eap) } } if (*eap->arg != NUL) { - set_string_option_direct(kOptErrorfile, eap->arg, OPT_FREE, 0); + set_string_option_direct(kOptErrorfile, eap->arg, 0, 0); } char *enc = (*curbuf->b_p_menc != NUL) ? curbuf->b_p_menc : p_menc; -- cgit