summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-11-29 14:20:27 +0100
committerBram Moolenaar <Bram@vim.org>2020-11-29 14:20:27 +0100
commit287153c5d481a09ffe98a95ad78390ff580bb557 (patch)
tree99819d5461273342402b66cb44f1934093fbb2da /src/quickfix.c
parentb46f57e87b3706a8c4b97d8e03f7853a7938b061 (diff)
downloadvim-git-287153c5d481a09ffe98a95ad78390ff580bb557.tar.gz
patch 8.2.2069: the quickfix window is not updated after setqflist()v8.2.2069
Problem: The quickfix window is not updated after setqflist(). Solution: Update the quickfix buffer. (Yegappan Lakshmanan, closes #7390, closes #7385)
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index 5e46ad2e9..d7a163dff 100644
--- 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 *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;
}