summaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index afe9bfdc0..80735b69a 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -5177,6 +5177,8 @@ mch_expand_wildcards(num_pat, pat, num_file, file, flags)
else if (!intick && vim_strchr((char_u *)" '",
pat[i][j]) != NULL)
{
+ /* Put quotes around special characters, but not when
+ * inside ``. */
*p++ = '"';
while (pat[i][j] != NUL
&& vim_strchr((char_u *)" '", pat[i][j]) != NULL)