summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimboss <devnull@localhost>2006-11-21 10:29:45 +0000
committervimboss <devnull@localhost>2006-11-21 10:29:45 +0000
commit14ef4ed5563684e16ab5fc2a3ac684cbb5562ee5 (patch)
tree236d145162f092e6b2c0035e86b9cbc724200aca
parent28c571258b67e5ab6655c4c8031fc1ffa89817f3 (diff)
downloadvim-14ef4ed5563684e16ab5fc2a3ac684cbb5562ee5.tar.gz
updated for version 7.0-165v7.0.165v7-0-165
-rw-r--r--src/ex_getln.c12
-rw-r--r--src/version.c2
2 files changed, 13 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 030be38e..a7de0503 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -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;
}
diff --git a/src/version.c b/src/version.c
index 0c2dd6de..eb55641f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 165,
+/**/
164,
/**/
163,