0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

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 #7390,
            closes #7385)
This commit is contained in:
Bram Moolenaar
2020-11-29 14:20:27 +01:00
parent b46f57e87b
commit 287153c5d4
3 changed files with 64 additions and 2 deletions

View File

@@ -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 *what, int action, char_u *title)
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;
}