Mercurial > vim
comparison src/quickfix.c @ 31996:ca6bc7c04163 v9.0.1330
patch 9.0.1330: handling new value of an option has a long "else if" chain
Commit: https://github.com/vim/vim/commit/af93691b53f38784efce0b93fe7644c44a7e382e
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Mon Feb 20 12:16:39 2023 +0000
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 https://github.com/vim/vim/issues/12015)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 20 Feb 2023 13:30:05 +0100 |
parents | 8b15e4161605 |
children | 4545f58c8490 |
comparison
equal
deleted
inserted
replaced
31995:95971aa5e525 | 31996:ca6bc7c04163 |
---|---|
4532 /* | 4532 /* |
4533 * Process the 'quickfixtextfunc' option value. | 4533 * Process the 'quickfixtextfunc' option value. |
4534 * Returns OK or FAIL. | 4534 * Returns OK or FAIL. |
4535 */ | 4535 */ |
4536 char * | 4536 char * |
4537 qf_process_qftf_option(void) | 4537 did_set_quickfixtextfunc(optset_T *args UNUSED) |
4538 { | 4538 { |
4539 if (option_set_callback_func(p_qftf, &qftf_cb) == FAIL) | 4539 if (option_set_callback_func(p_qftf, &qftf_cb) == FAIL) |
4540 return e_invalid_argument; | 4540 return e_invalid_argument; |
4541 | 4541 |
4542 return NULL; | 4542 return NULL; |