diff options
-rw-r--r-- | src/nvim/quickfix.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index d8bbcb9447..a4c3ec2430 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -3878,12 +3878,13 @@ int get_errorlist(win_T *wp, int qf_idx, list_T *list) } if (qf_idx >= qi->qf_listcount - || qi->qf_lists[qf_idx].qf_count == 0) + || qi->qf_lists[qf_idx].qf_count == 0) { return FAIL; + } qfp = qi->qf_lists[qf_idx].qf_start; - for (i = 1; !got_int && i <= qi->qf_lists[qf_idx].qf_count; ++i) { - /* Handle entries with a non-existing buffer number. */ + for (i = 1; !got_int && i <= qi->qf_lists[qf_idx].qf_count; i++) { + // Handle entries with a non-existing buffer number. bufnum = qfp->qf_fnum; if (bufnum != 0 && (buflist_findnr(bufnum) == NULL)) bufnum = 0; |