Mirror of the Vim source from https://github.com/vim/vim
Revision | 04943f31135747da59cbed2b39fb109dd2796426 (tree) |
---|---|
Zeit | 2006-11-21 19:29:45 |
Autor | vimboss |
Commiter | vimboss |
updated for version 7.0-165
@@ -34,7 +34,7 @@ | ||
34 | 34 | int xp_context; /* type of expansion */ |
35 | 35 | # ifdef FEAT_EVAL |
36 | 36 | char_u *xp_arg; /* user-defined expansion arg */ |
37 | - int input_fn; /* Invoked for input() function */ | |
37 | + int input_fn; /* when TRUE Invoked for input() function */ | |
38 | 38 | # endif |
39 | 39 | }; |
40 | 40 |
@@ -1390,7 +1390,17 @@ | ||
1390 | 1390 | { |
1391 | 1391 | c = gchar_cursor(); |
1392 | 1392 | if (c != NUL) |
1393 | + { | |
1394 | + if (c == firstc || vim_strchr((char_u *)( | |
1395 | + p_magic ? "\\^$.*[" : "\\^$"), c) | |
1396 | + != NULL) | |
1397 | + { | |
1398 | + /* put a backslash before special characters */ | |
1399 | + stuffcharReadbuff(c); | |
1400 | + c = '\\'; | |
1401 | + } | |
1393 | 1402 | break; |
1403 | + } | |
1394 | 1404 | } |
1395 | 1405 | goto cmdline_not_changed; |
1396 | 1406 | } |
@@ -667,6 +667,8 @@ | ||
667 | 667 | static int included_patches[] = |
668 | 668 | { /* Add new patch number below this line */ |
669 | 669 | /**/ |
670 | + 165, | |
671 | +/**/ | |
670 | 672 | 164, |
671 | 673 | /**/ |
672 | 674 | 163, |