mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 17:58:18 +00:00
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 vim/vim#12015)
af93691b53
This commit is contained in:
@@ -3885,11 +3885,12 @@ static buf_T *qf_find_buf(qf_info_T *qi)
|
||||
}
|
||||
|
||||
/// Process the 'quickfixtextfunc' option value.
|
||||
void qf_process_qftf_option(const char **errmsg)
|
||||
const char *did_set_quickfixtextfunc(optset_T *args FUNC_ATTR_UNUSED)
|
||||
{
|
||||
if (option_set_callback_func(p_qftf, &qftf_cb) == FAIL) {
|
||||
*errmsg = e_invarg;
|
||||
return e_invarg;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/// Update the w:quickfix_title variable in the quickfix/location list window in
|
||||
|
Reference in New Issue
Block a user