summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index 3ac534dc1..b11ddd255 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -1180,7 +1180,10 @@ copy_loclist(from, to)
/* When no valid entries are present in the list, qf_ptr points to
* the first item in the list */
if (to_qfl->qf_nonevalid)
+ {
to_qfl->qf_ptr = to_qfl->qf_start;
+ to_qfl->qf_index = 1;
+ }
}
to->w_llist->qf_curlist = qi->qf_curlist; /* current list */