0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.1982: quickfix window now updated when adding invalid entries

Problem:    Quickfix window now updated when adding invalid entries.
Solution:   Update the quickfix buffer properly. (Yegappan Lakshmanan, closes
            #7291, closes #7271)
This commit is contained in:
Bram Moolenaar
2020-11-14 13:15:24 +01:00
parent 8496c9eadb
commit 2ce7790348
3 changed files with 20 additions and 2 deletions

View File

@@ -4674,14 +4674,17 @@ qf_fill_buffer(qf_list_T *qfl, buf_T *buf, qfline_T *old_last, int qf_winid)
*dirname = NUL;
// Add one line for each error
if (old_last == NULL || old_last->qf_next == NULL)
if (old_last == NULL)
{
qfp = qfl->qf_start;
lnum = 0;
}
else
{
qfp = old_last->qf_next;
if (old_last->qf_next != NULL)
qfp = old_last->qf_next;
else
qfp = old_last;
lnum = buf->b_ml.ml_line_count;
}