Mercurial > vim
diff src/quickfix.c @ 23045:450d6e4992e1 v8.2.2069
patch 8.2.2069: the quickfix window is not updated after setqflist()
Commit: https://github.com/vim/vim/commit/287153c5d481a09ffe98a95ad78390ff580bb557
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 29 14:20:27 2020 +0100
patch 8.2.2069: the quickfix window is not updated after setqflist()
Problem: The quickfix window is not updated after setqflist().
Solution: Update the quickfix buffer. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/7390,
closes #7385)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 29 Nov 2020 14:30:04 +0100 |
parents | fab8455af19c |
children | db97415750ce |
line wrap: on
line diff
--- a/src/quickfix.c +++ b/src/quickfix.c @@ -7349,7 +7349,7 @@ qf_setprop_items_from_lines( if (action == 'r') qf_free_items(&qi->qf_lists[qf_idx]); if (qf_init_ext(qi, qf_idx, NULL, NULL, &di->di_tv, errorformat, - FALSE, (linenr_T)0, (linenr_T)0, NULL, NULL) > 0) + FALSE, (linenr_T)0, (linenr_T)0, NULL, NULL) >= 0) retval = OK; return retval; @@ -7474,8 +7474,10 @@ qf_set_properties(qf_info_T *qi, dict_T if ((di = dict_find(what, (char_u *)"quickfixtextfunc", -1)) != NULL) retval = qf_setprop_qftf(qi, qfl, di); - if (retval == OK) + if (newlist || retval == OK) qf_list_changed(qfl); + if (newlist) + qf_update_buffer(qi, NULL); return retval; }