summaryrefslogtreecommitdiff
path: root/USearch.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-10-03 18:16:51 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-10-03 18:16:51 +0200
commit00c70c7bf0f07e3f525fc56497abb3b1a505bc41 (patch)
tree671e95f69e3a562df751b74cd0c8ae529a88fa02 /USearch.pas
parent8d005b7b0562eba38cad48c3c6f99e47667f8551 (diff)
downloadtuxcmd-00c70c7bf0f07e3f525fc56497abb3b1a505bc41.tar.xz
Search: match both by real and display name
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