aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.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/main.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/main.c')
-rw-r--r--src/nvim/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index 264593ffe8..e41501c562 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -1542,7 +1542,7 @@ static void handle_quickfix(mparm_T *paramp)
{
if (paramp->edit_type == EDIT_QF) {
if (paramp->use_ef != NULL) {
- set_string_option_direct(kOptErrorfile, paramp->use_ef, OPT_FREE, SID_CARG);
+ set_string_option_direct(kOptErrorfile, paramp->use_ef, 0, SID_CARG);
}
vim_snprintf(IObuff, IOSIZE, "cfile %s", p_ef);
if (qf_init(NULL, p_ef, p_efm, true, IObuff, p_menc) < 0) {