aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-29 20:50:57 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-29 21:12:31 -0500
commit5706ff15ed524fb88bc1cc463597550b895b0d7a (patch)
tree9b56a11b9fd92b02605cfe2046004623af058298 /src/nvim/quickfix.c
parentaec61074a97bac3290f1afef309429b35a71d1a2 (diff)
downloadrneovim-5706ff15ed524fb88bc1cc463597550b895b0d7a.tar.gz
rneovim-5706ff15ed524fb88bc1cc463597550b895b0d7a.tar.bz2
rneovim-5706ff15ed524fb88bc1cc463597550b895b0d7a.zip
vim-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 vim/vim#7390, closes vim/vim#7385) https://github.com/vim/vim/commit/287153c5d481a09ffe98a95ad78390ff580bb557 N/A patches for version.c: vim-patch:8.2.2067: cursor position in popup terminal is wrong Problem: Cursor position in popup terminal is wrong. Solution: Don't check the flags. https://github.com/vim/vim/commit/f5452691ba30e33b38c5b06c51ba40b58457d5d8
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index 3d7d587ed2..7fdc998e20 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -6155,7 +6155,7 @@ static int qf_setprop_items_from_lines(
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;
}
@@ -6256,9 +6256,12 @@ static int qf_set_properties(qf_info_T *qi, const dict_T *what, int action,
retval = qf_setprop_curidx(qi, qfl, di);
}
- if (retval == OK) {
+ if (newlist || retval == OK) {
qf_list_changed(qfl);
}
+ if (newlist) {
+ qf_update_buffer(qi, NULL);
+ }
return retval;
}