0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.0-165

This commit is contained in:
Bram Moolenaar
2006-11-21 10:29:45 +00:00
parent 9a51c6e35d
commit 93db975fa4
2 changed files with 13 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ struct cmdline_info
int xp_context; /* type of expansion */ int xp_context; /* type of expansion */
# ifdef FEAT_EVAL # ifdef FEAT_EVAL
char_u *xp_arg; /* user-defined expansion arg */ 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 # endif
}; };
@@ -1390,8 +1390,18 @@ getcmdline(firstc, count, indent)
{ {
c = gchar_cursor(); c = gchar_cursor();
if (c != NUL) if (c != NUL)
{
if (c == firstc || vim_strchr((char_u *)(
p_magic ? "\\^$.*[" : "\\^$"), c)
!= NULL)
{
/* put a backslash before special characters */
stuffcharReadbuff(c);
c = '\\';
}
break; break;
} }
}
goto cmdline_not_changed; goto cmdline_not_changed;
} }
#endif #endif

View File

@@ -666,6 +666,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
165,
/**/ /**/
164, 164,
/**/ /**/