refactor(optionstr.c): break up did_set_string_option 26

This commit is contained in:
Lewis Russell
2023-01-23 09:38:44 +00:00
parent 7fa7c758e2
commit 700a02bd83
5 changed files with 31 additions and 42 deletions

View File

@@ -5626,10 +5626,11 @@ static void op_colon(oparg_T *oap)
static Callback opfunc_cb;
/// Process the 'operatorfunc' option value.
/// @return OK or FAIL
int set_operatorfunc_option(void)
void set_operatorfunc_option(char **errmsg)
{
return option_set_callback_func(p_opfunc, &opfunc_cb);
if (option_set_callback_func(p_opfunc, &opfunc_cb) == FAIL) {
*errmsg = e_invarg;
}
}
#if defined(EXITFREE)