diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/quickfix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 57d3f2fd41..68217eefe7 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -3411,9 +3411,10 @@ static void qf_free_items(qf_list_T *qfl) // to avoid crashing when it's wrong. // TODO(vim): Avoid qf_count being incorrect. qfl->qf_count = 1; + } else { + qfl->qf_start = qfpnext; } } - qfl->qf_start = qfpnext; qfl->qf_count--; } |