diff options
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/computil.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 8c1fa0800..6bc02e36d 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -3671,14 +3671,14 @@ bin_comptry(char *nam, char **args, UNUSED(Options ops), UNUSED(int func)) qqq = qq = dupstring(q); while (*qqq) { - if (qqq == qq || qqq[-1] != '\\') { - if (*qqq == '{') - *qqq = Inbrace; - else if (*qqq == '}') - *qqq = Outbrace; - else if (*qqq == ',') - *qqq = Comma; - } + if (*qqq == '\\' && qqq[1]) + qqq++; + else if (*qqq == '{') + *qqq = Inbrace; + else if (*qqq == '}') + *qqq = Outbrace; + else if (*qqq == ',') + *qqq = Comma; qqq++; } tokenize(qq); |