summaryrefslogtreecommitdiff
path: root/USearch.pas
diff options
context:
space:
mode:
Diffstat (limited to 'USearch.pas')
-rw-r--r--USearch.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/USearch.pas b/USearch.pas
index 3585600..eb609c3 100644
--- a/USearch.pas
+++ b/USearch.pas
@@ -937,7 +937,7 @@ begin
if Matches and (Length(Wilds) > 0) then begin
b := False;
for j := 0 to Length(Wilds) - 1 do
- b := b or IsWild(FileName, Wilds[j], not FCaseSensitiveMask);
+ b := b or IsWild(FileName, Wilds[j], not FCaseSensitiveMask) or IsWild(Data^.FDisplayName, Wilds[j], not FCaseSensitiveMask);
Matches := Matches and b;
end;
if not Data^.IsDir then begin // Stop matching if file is directory