]> granicus.if.org Git - vim/commitdiff
updated for version 7.0-165 v7.0.165
authorBram Moolenaar <Bram@vim.org>
Tue, 21 Nov 2006 10:29:45 +0000 (10:29 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 21 Nov 2006 10:29:45 +0000 (10:29 +0000)
src/ex_getln.c
src/version.c

index 030be38ea23982a47b9f5547152a670d50cb0c1c..a7de0503e2eec61b7a6059aefdceb7845023a1da 100644 (file)
@@ -34,7 +34,7 @@ struct cmdline_info
     int                xp_context;     /* type of expansion */
 # ifdef FEAT_EVAL
     char_u     *xp_arg;        /* user-defined expansion arg */
-    int                input_fn;       /* Invoked for input() function */
+    int                input_fn;       /* when TRUE Invoked for input() function */
 # endif
 };
 
@@ -1390,7 +1390,17 @@ getcmdline(firstc, count, indent)
                    {
                        c = gchar_cursor();
                        if (c != NUL)
+                       {
+                           if (c == firstc || vim_strchr((char_u *)(
+                                           p_magic ? "\\^$.*[" : "\\^$"), c)
+                                                                     != NULL)
+                           {
+                               /* put a backslash before special characters */
+                               stuffcharReadbuff(c);
+                               c = '\\';
+                           }
                            break;
+                       }
                    }
                    goto cmdline_not_changed;
                }
index 0c2dd6de8f797aaa14fbb73487f0274021afd6fd..eb55641f12dd09124a071bc0170c914ecd78579f 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    165,
 /**/
     164,
 /**/