patch 9.0.1330: handling new value of an option has a long "else if" chain
Problem: Handling new value of an option has a long "else if" chain.
Solution: Use a function pointer. (Yegappan Lakshmanan, closes #12015)
diff --git a/src/ops.c b/src/ops.c
index 138edc7..01d2e95 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -3406,7 +3406,7 @@
* Returns OK or FAIL.
*/
char *
-set_operatorfunc_option(void)
+did_set_operatorfunc(optset_T *args UNUSED)
{
if (option_set_callback_func(p_opfunc, &opfunc_cb) == FAIL)
return e_invalid_argument;