changeset 5060:30910831e5b0 v7.3.1273

updated for version 7.3.1273 Problem: When copying a location list the index might be wrong. Solution: Set the index to one when using the first entry. (Lech Lorens)
author Bram Moolenaar <bram@vim.org>
date Sun, 30 Jun 2013 13:33:58 +0200
parents 5dda3745e997
children d576fdeb104a
files src/quickfix.c src/version.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 */
--- 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,