diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-04-17 17:23:47 +0100 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-28 23:04:09 +0800 |
commit | ff34c91194f9ab9d02808f2880029c38a4655eb5 (patch) | |
tree | fc0eb2a8e58b92e6af59411165a0127af63dd552 /src/nvim/quickfix.c | |
parent | 715587f8e44e941ece6f17eb77620fd1b4719496 (diff) | |
download | rneovim-ff34c91194f9ab9d02808f2880029c38a4655eb5.tar.gz rneovim-ff34c91194f9ab9d02808f2880029c38a4655eb5.tar.bz2 rneovim-ff34c91194f9ab9d02808f2880029c38a4655eb5.zip |
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)
https://github.com/vim/vim/commit/af93691b53f38784efce0b93fe7644c44a7e382e
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 36714d816a..48a558197f 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -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 |