aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-22 09:14:42 +0800
committerGitHub <noreply@github.com>2024-03-22 09:14:42 +0800
commitdc110cba3c0d48d7c9dbb91900f8be0cf6cf0c9b (patch)
treea534155ed127b0c6b4f22ea86150c4e0c045d62a /src/nvim/quickfix.c
parent15c6909bb198ca8a1a22405a4a7e96357716e57e (diff)
parent58cc66ee1f066127c33157b91c64d9b125a96621 (diff)
downloadrneovim-dc110cba3c0d48d7c9dbb91900f8be0cf6cf0c9b.tar.gz
rneovim-dc110cba3c0d48d7c9dbb91900f8be0cf6cf0c9b.tar.bz2
rneovim-dc110cba3c0d48d7c9dbb91900f8be0cf6cf0c9b.zip
Merge pull request #26970 from famiu/refactor/options/set_option_direct
refactor(options): remove `set_string_option_direct()`
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 0f639bf86a..9f431556e8 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -5154,7 +5154,7 @@ void ex_cfile(exarg_T *eap)
}
}
if (*eap->arg != NUL) {
- set_string_option_direct(kOptErrorfile, eap->arg, 0, 0);
+ set_option_direct(kOptErrorfile, CSTR_AS_OPTVAL(eap->arg), 0, 0);
}
char *enc = (*curbuf->b_p_menc != NUL) ? curbuf->b_p_menc : p_menc;