summaryrefslogtreecommitdiffstats
path: root/src/ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ops.c b/src/ops.c
index f4059b86f1..138edc73f5 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -3405,10 +3405,13 @@ static callback_T opfunc_cb;
* Process the 'operatorfunc' option value.
* Returns OK or FAIL.
*/
- int
+ char *
set_operatorfunc_option(void)
{
- return option_set_callback_func(p_opfunc, &opfunc_cb);
+ if (option_set_callback_func(p_opfunc, &opfunc_cb) == FAIL)
+ return e_invalid_argument;
+
+ return NULL;
}
#if defined(EXITFREE) || defined(PROTO)