mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2024-11-23 05:40:44 +00:00
20 lines
620 B
Diff
20 lines
620 B
Diff
|
diff --git a/Src/utils.c b/Src/utils.c
|
||
|
index edf5d3df7..2d1712227 100644
|
||
|
--- a/Src/utils.c
|
||
|
+++ b/Src/utils.c
|
||
|
@@ -6205,11 +6205,11 @@ quotestring(const char *s, int instring)
|
||
|
continue;
|
||
|
}
|
||
|
else if (ispecial(*u) &&
|
||
|
- ((*u != '=' && *u != '~') ||
|
||
|
+ ((*u != '=' && *u != '~' && *u != '#' && *u != '^') ||
|
||
|
u == s ||
|
||
|
(isset(MAGICEQUALSUBST) &&
|
||
|
- (u[-1] == '=' || u[-1] == ':')) ||
|
||
|
+ (u[-1] == '=' || u[-1] == ':'))
|
||
|
- (*u == '~' && isset(EXTENDEDGLOB))) &&
|
||
|
+ ) &&
|
||
|
(instring == QT_BACKSLASH ||
|
||
|
instring == QT_SINGLE_OPTIONAL ||
|
||
|
(
|