aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/optionstr.c
diff options
context:
space:
mode:
authorFamiu Haque <famiuhaque@proton.me>2023-09-27 23:30:17 +0600
committerFamiu Haque <famiuhaque@proton.me>2023-10-17 00:08:47 +0600
commit93b9c889465ee6a55e71c1fd681c1c6b1d5ed060 (patch)
treeb1cf69e4b844c5c67b005a980d0d09a8a67e15c3 /src/nvim/optionstr.c
parent0892c1cd94672e0dffe3b97fc4a85ea517b05598 (diff)
downloadrneovim-93b9c889465ee6a55e71c1fd681c1c6b1d5ed060.tar.gz
rneovim-93b9c889465ee6a55e71c1fd681c1c6b1d5ed060.tar.bz2
rneovim-93b9c889465ee6a55e71c1fd681c1c6b1d5ed060.zip
refactor(options): unify set_num_option and set_bool_option
Diffstat (limited to 'src/nvim/optionstr.c')
-rw-r--r--src/nvim/optionstr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/optionstr.c b/src/nvim/optionstr.c
index 88e7ebd991..08618406e6 100644
--- a/src/nvim/optionstr.c
+++ b/src/nvim/optionstr.c
@@ -441,14 +441,13 @@ void set_string_option_direct_in_buf(buf_T *buf, const char *name, int opt_idx,
/// #OPT_GLOBAL.
///
/// @return NULL on success, an untranslated error message on error.
-const char *set_string_option(const int opt_idx, void *varp_arg, const char *value,
+const char *set_string_option(const int opt_idx, void *varp, const char *value,
const int opt_flags, bool *value_checked, char *const errbuf,
const size_t errbuflen)
FUNC_ATTR_WARN_UNUSED_RESULT
{
vimoption_T *opt = get_option(opt_idx);
- void *varp = (char **)varp_arg;
char *origval_l = NULL;
char *origval_g = NULL;