diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2023-02-20 12:16:39 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-02-20 12:16:39 +0000 |
commit | af93691b53f38784efce0b93fe7644c44a7e382e (patch) | |
tree | 74e8f31e222aed907e80c4dc5b0bded5f7400537 /src/insexpand.c | |
parent | 997b8a015cd39141866e953651d55c705275cbd6 (diff) |
patch 9.0.1330: handling new value of an option has a long "else if" chainv9.0.1330
Problem: Handling new value of an option has a long "else if" chain.
Solution: Use a function pointer. (Yegappan Lakshmanan, closes #12015)
Diffstat (limited to 'src/insexpand.c')
-rw-r--r-- | src/insexpand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/insexpand.c b/src/insexpand.c index a8d986a2cd..779bf5eeb8 100644 --- a/src/insexpand.c +++ b/src/insexpand.c @@ -2546,7 +2546,7 @@ copy_global_to_buflocal_cb(callback_T *globcb, callback_T *bufcb) * lambda expression. */ char * -set_completefunc_option(void) +did_set_completefunc(optset_T *args UNUSED) { if (option_set_callback_func(curbuf->b_p_cfu, &cfu_cb) == FAIL) return e_invalid_argument; @@ -2575,7 +2575,7 @@ set_buflocal_cfu_callback(buf_T *buf UNUSED) * lambda expression. */ char * -set_omnifunc_option(void) +did_set_omnifunc(optset_T *args UNUSED) { if (option_set_callback_func(curbuf->b_p_ofu, &ofu_cb) == FAIL) return e_invalid_argument; @@ -2603,7 +2603,7 @@ set_buflocal_ofu_callback(buf_T *buf UNUSED) * lambda expression. */ char * -set_thesaurusfunc_option(void) +did_set_thesaurusfunc(optset_T *args UNUSED) { int retval; |