From 7e1ac2d806e0a7ca775ae864028747cd934f1c4d Mon Sep 17 00:00:00 2001 From: axel Date: Tue, 3 Feb 2009 09:47:51 +1000 Subject: [PATCH] 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 --- expand.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/expand.c b/expand.c index 069fde748..6f222e901 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++; }