From 0cf6f545ac227b02bb505adc2afad97a16555ae1 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 16 Jan 2005 21:59:36 +0000 Subject: updated for version 7.0040 --- src/os_unix.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/os_unix.c') 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 } -- cgit v1.2.1