summaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-01-30 00:14:18 +0000
committerBram Moolenaar <Bram@vim.org>2006-01-30 00:14:18 +0000
commit280f126ef03c4e7d71d2c8341d661d3e37157851 (patch)
treed65ce0b9c87c5c0d04432cad5eafcbdbfebf0239 /src/os_unix.c
parent17c7c011706af19bb736c6815375f3b67a5646fc (diff)
downloadvim-git-280f126ef03c4e7d71d2c8341d661d3e37157851.tar.gz
updated for version 7.0189v7.0189
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 374d85e76..4a339f90a 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -5122,10 +5122,7 @@ mch_expand_wildcards(num_pat, pat, num_file, file, flags)
for (j = 0; pat[i][j] != NUL; ++j)
{
if (pat[i][j] == '`')
- {
intick = !intick;
- *p++ = pat[i][j];
- }
else if (pat[i][j] == '\\' && pat[i][j + 1] != NUL)
{
/* Remove a backslash, take char literally. But keep
@@ -5134,19 +5131,16 @@ mch_expand_wildcards(num_pat, pat, num_file, file, flags)
if (intick
|| vim_strchr(SHELL_SPECIAL, pat[i][j + 1]) != NULL)
*p++ = '\\';
- *p++ = pat[i][++j];
+ ++j;
}
else if (!intick && vim_strchr(SHELL_SPECIAL,
pat[i][j]) != NULL)
- {
/* Put a backslash before a special character, but not
* when inside ``. */
*p++ = '\\';
- *p++ = pat[i][j];
- }
- else
- /* Simply copy the character. */
- *p++ = pat[i][++j];
+
+ /* Copy one character. */
+ *p++ = pat[i][j];
}
*p = NUL;
#endif