Mercurial > vim
diff src/quickfix.c @ 22870:69b48d2822ec v8.2.1982
patch 8.2.1982: quickfix window now updated when adding invalid entries
Commit: https://github.com/vim/vim/commit/2ce7790348dab9cbfcc5d02c8258d0dd7ecacf95
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 14 13:15:24 2020 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 14 Nov 2020 13:30:05 +0100 |
parents | e82579016863 |
children | fab8455af19c |
line wrap: on
line diff
--- a/src/quickfix.c +++ b/src/quickfix.c @@ -4674,14 +4674,17 @@ qf_fill_buffer(qf_list_T *qfl, buf_T *bu *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; }