]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.1273 v7.3.1273
authorBram Moolenaar <Bram@vim.org>
Sun, 30 Jun 2013 11:33:58 +0000 (13:33 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 30 Jun 2013 11:33:58 +0000 (13:33 +0200)
Problem:    When copying a location list the index might be wrong.
Solution:   Set the index to one when using the first entry. (Lech Lorens)

src/quickfix.c
src/version.c

index 3ac534dc14df9ba7d562ab679b68242e6f65889d..b11ddd255b9b039d89f20d48f2704c9f0bc75140 100644 (file)
@@ -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 */
index 24903236605fccdbbad0f2759f2065d0e8e5fb72..ea90de9c7d3af5a5200132dd3c43c387b7f1a6ae 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1273,
 /**/
     1272,
 /**/