aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-12-04 11:54:02 +1000
committerGravatar axel <axel@liljencrantz.se>2005-12-04 11:54:02 +1000
commit754d8d37125609dc67c1f41d9b35f3bfa468317c (patch)
treea57a5910e197ba0e82f045ce4f16c69b1d353bc0 /expand.c
parent86230813de763ffcfe0b6976114782f72e6f8370 (diff)
Fix bug breaking filename completions, introduced by csh wildcard syntax
darcs-hash:20051204015402-ac50b-911c6188f6c8213a733f4e967fc903f5290f1772.gz
Diffstat (limited to 'expand.c')
-rw-r--r--expand.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/expand.c b/expand.c
index 120555e4..4b8e1e14 100644
--- a/expand.c
+++ b/expand.c
@@ -1392,7 +1392,8 @@ int expand_string( wchar_t *str,
int subshell_ok = 1;
int res = EXPAND_OK;
-
+// debug( 1, L"Expand %ls", str );
+
if( (!(flags & ACCEPT_INCOMPLETE)) && is_clean( str ) )
{
@@ -1560,11 +1561,9 @@ int expand_string( wchar_t *str,
{
if( res == EXPAND_OK )
res = EXPAND_WILDCARD_NO_MATCH;
-
+ break;
}
- break;
-
case 1:
res = EXPAND_WILDCARD_MATCH;
sort_list( out );