From af93691b53f38784efce0b93fe7644c44a7e382e Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Mon, 20 Feb 2023 12:16:39 +0000 Subject: 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) --- src/ex_getln.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ex_getln.c') diff --git a/src/ex_getln.c b/src/ex_getln.c index b2bf4ed329..a938bd6b60 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -4366,7 +4366,7 @@ get_list_range(char_u **str, int *num1, int *num2) * Returns NULL if value is OK, error message otherwise. */ char * -check_cedit(void) +did_set_cedit(optset_T *args UNUSED) { int n; -- cgit v1.2.3