diff options
author | Bram Moolenaar <bram@vim.org> | 2013-06-30 13:33:58 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2013-06-30 13:33:58 +0200 |
commit | e5ea907f4b2b3851d07fab73127b50be686888e5 (patch) | |
tree | e5010dd502707a475892d44e6e7189d9257e7304 | |
parent | 80c0b0e6a824522262863858443d37f7cfff2fa6 (diff) | |
download | vim-e5ea907f4b2b3851d07fab73127b50be686888e5.tar.gz |
Problem: When copying a location list the index might be wrong.
Solution: Set the index to one when using the first entry. (Lech Lorens)
-rw-r--r-- | src/quickfix.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/quickfix.c b/src/quickfix.c index 3ac534dc..b11ddd25 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 */ diff --git a/src/version.c b/src/version.c index 24903236..ea90de9c 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1273, +/**/ 1272, /**/ 1271, |