aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorFamiu Haque <famiuhaque@proton.me>2024-01-10 04:15:22 +0600
committerGitHub <noreply@github.com>2024-01-10 06:15:22 +0800
commit10f36af84d4ccb0b626cd6c79c6ba2f2735a56fd (patch)
treecffc1614f18b97712a9fb332deba53a7b21dc0a4 /src/nvim/quickfix.c
parent501cf323575864c847be892da1197daa8c3771a1 (diff)
downloadrneovim-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/quickfix.c')
-rw-r--r--src/nvim/quickfix.c2
1 files changed, 1 insertions, 1 deletions
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;