Allow multiple slashes in a wildcard to be used as a single directory separator

darcs-hash:20060221154738-ac50b-e4b35d3604d8e39d3aff7b8da38617272bd6e89e.gz
This commit is contained in:
axel 2006-02-22 01:47:38 +10:00
parent 328c3a39a1
commit a4a025b786

View file

@ -657,7 +657,15 @@ int wildcard_expand( const wchar_t *wc,
*/ */
if( whole_match ) if( whole_match )
{ {
res |= wildcard_expand( wc_end?wc_end + 1:L"", wchar_t *new_wc = L"";
if( wc_end )
{
new_wc=wc_end+1;
while(*new_wc==L'/')
new_wc++;
}
res |= wildcard_expand( new_wc,
new_dir, new_dir,
flags, flags,
out ); out );