forked from aniani/vim
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)
This commit is contained in:
committed by
Bram Moolenaar
parent
997b8a015c
commit
af93691b53
@@ -4534,7 +4534,7 @@ qf_find_buf(qf_info_T *qi)
|
||||
* Returns OK or FAIL.
|
||||
*/
|
||||
char *
|
||||
qf_process_qftf_option(void)
|
||||
did_set_quickfixtextfunc(optset_T *args UNUSED)
|
||||
{
|
||||
if (option_set_callback_func(p_qftf, &qftf_cb) == FAIL)
|
||||
return e_invalid_argument;
|
||||
|
Reference in New Issue
Block a user