]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.1271 v7.3.1271
authorBram Moolenaar <Bram@vim.org>
Sun, 30 Jun 2013 10:21:24 +0000 (12:21 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 30 Jun 2013 10:21:24 +0000 (12:21 +0200)
Problem:    Command line completion does not work.
Solution:   Move setting xp_line down. (Daniel Thau)

src/ex_getln.c
src/version.c

index 18a708bf980a617c4a4881125c21da94fe71b5a3..11571d19463b76ba4f7a3498ede32013402622e4 100644 (file)
@@ -4379,11 +4379,6 @@ set_cmd_context(xp, str, len, col)
     int                old_char = NUL;
     char_u     *nextcomm;
 
-    /* Store the string here so that call_user_expand_func() can get to them
-     * easily. */
-    xp->xp_line = str;
-    xp->xp_col = col;
-
     /*
      * Avoid a UMR warning from Purify, only save the character if it has been
      * written before.
@@ -4414,6 +4409,11 @@ set_cmd_context(xp, str, len, col)
        while (nextcomm != NULL)
            nextcomm = set_one_cmd_context(xp, nextcomm);
 
+    /* Store the string here so that call_user_expand_func() can get to them
+     * easily. */
+    xp->xp_line = str;
+    xp->xp_col = col;
+
     str[col] = old_char;
 }
 
index 18588e8c4594d58ac96393862e4411182736fc2a..3a0b3673876132b0374b2a1de8f0c5c99aa50d4a 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1271,
 /**/
     1270,
 /**/