summaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-01-16 21:59:36 +0000
committerBram Moolenaar <Bram@vim.org>2005-01-16 21:59:36 +0000
commit0cf6f545ac227b02bb505adc2afad97a16555ae1 (patch)
tree21d721ae3683ef9f3b1cb3fbef6d35ba9508c620 /src/os_unix.c
parent32e4e1f1d8117b698ae278db08778d3ff2569801 (diff)
downloadvim-git-0cf6f545ac227b02bb505adc2afad97a16555ae1.tar.gz
updated for version 7.0040
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 6186d9264..81fa4240c 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -4939,7 +4939,12 @@ mch_expand_wildcards(num_pat, pat, num_file, file, flags)
*p++ = '"';
}
else
- *p++ = pat[i][j++];
+ {
+ /* For a backslash also copy the next character, don't
+ * want to put quotes around it. */
+ if ((*p++ = pat[i][j++]) == '\\' && pat[i][j] != NUL)
+ *p++ = pat[i][j++];
+ }
*p = NUL;
#endif
}