diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-07 14:49:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 14:49:53 +0800 |
commit | e9c1cb71f8a4d6d7818dcb5f71ac78bee431309a (patch) | |
tree | 0ae5f982feae83a659b83e8a9272a3cab778252b /src/nvim/quickfix.c | |
parent | b042f6d9022a4c734477f1fdbc92b4f8134661b3 (diff) | |
parent | 2ed2c04aa518fb2591497e9a5ebe9cc32d8894a8 (diff) | |
download | rneovim-e9c1cb71f8a4d6d7818dcb5f71ac78bee431309a.tar.gz rneovim-e9c1cb71f8a4d6d7818dcb5f71ac78bee431309a.tar.bz2 rneovim-e9c1cb71f8a4d6d7818dcb5f71ac78bee431309a.zip |
Merge pull request #20987 from zeertzjq/vim-8.2.3751
vim-patch:8.2.{3735,3751,3756,3758,3788,3792}
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 5d101ee415..7ecb4e4956 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -6686,7 +6686,8 @@ int set_errorlist(win_T *wp, list_T *list, int action, char *title, dict_T *what return retval; } -/// Mark the context as in use for all the lists in a quickfix stack. +/// Mark the quickfix context and callback function as in use for all the lists +/// in a quickfix stack. static bool mark_quickfix_ctx(qf_info_T *qi, int copyID) { bool abort = false; @@ -6695,8 +6696,11 @@ static bool mark_quickfix_ctx(qf_info_T *qi, int copyID) typval_T *ctx = qi->qf_lists[i].qf_ctx; if (ctx != NULL && ctx->v_type != VAR_NUMBER && ctx->v_type != VAR_STRING && ctx->v_type != VAR_FLOAT) { - abort = set_ref_in_item(ctx, copyID, NULL, NULL); + abort = abort || set_ref_in_item(ctx, copyID, NULL, NULL); } + + Callback *cb = &qi->qf_lists[i].qf_qftf_cb; + abort = abort || set_ref_in_callback(cb, copyID, NULL, NULL); } return abort; @@ -6711,6 +6715,11 @@ bool set_ref_in_quickfix(int copyID) return abort; } + abort = set_ref_in_callback(&qftf_cb, copyID, NULL, NULL); + if (abort) { + return abort; + } + FOR_ALL_TAB_WINDOWS(tp, win) { if (win->w_llist != NULL) { abort = mark_quickfix_ctx(win->w_llist, copyID); |