aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2009-02-03 09:47:51 +1000
committerGravatar axel <axel@liljencrantz.se>2009-02-03 09:47:51 +1000
commit7e1ac2d806e0a7ca775ae864028747cd934f1c4d (patch)
treeb553bb8cc23ab1708f9b43043488d8e77515505c /expand.c
parent35258bf1fbf54cd0405755be0bf5a7e422a58fc1 (diff)
Actually escape the double-star recursive wildcard char when requested. This will make sure the syntax highlighting doesn't try to perform a recursive wildcard expansion when cheching command name existance, which killed performance
darcs-hash:20090202234751-ac50b-55dfd8b52f842826b02a69d6ab51c222108c30e3.gz
Diffstat (limited to 'expand.c')
-rw-r--r--expand.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/expand.c b/expand.c
index 069fde74..6f222e90 100644
--- a/expand.c
+++ b/expand.c
@@ -1519,6 +1519,11 @@ static void remove_internal_separator( const void *s, int conv )
*out++ = conv?L'*':ANY_STRING;
break;
+ case ANY_STRING_RECURSIVE:
+ in++;
+ *out++ = conv?L'*':ANY_STRING;
+ break;
+
default:
*out++ = *in++;
}