]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.372 v7.3.372
authorBram Moolenaar <Bram@vim.org>
Thu, 8 Dec 2011 17:44:51 +0000 (18:44 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 8 Dec 2011 17:44:51 +0000 (18:44 +0100)
Problem:    When using a command line mapping to <Up> with file name
            completion to go one directory up, 'wildchar' is inserted.
            (Yasuhiro Matsumoto)
Solution:   Set the KeyTyped flag.

src/ex_getln.c
src/version.c

index bf4999b47eef6b59ebef3551e498ffc108c91f47..97f8305abab1dff54197fdbbf97d712e916f4aad 100644 (file)
@@ -645,7 +645,11 @@ getcmdline(firstc, count, indent)
                }
                else if (ccline.cmdpos > i)
                    cmdline_del(i);
+
+               /* Now complete in the new directory. Set KeyTyped in case the
+                * Up key came from a mapping. */
                c = p_wc;
+               KeyTyped = TRUE;
            }
        }
 
index 767103b9519a06d5f833070e816ed53336e29f2a..e2f60f61ca0e9ae24928fea34c8131011f11ee89 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    372,
 /**/
     371,
 /**/