From 00c70c7bf0f07e3f525fc56497abb3b1a505bc41 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 3 Oct 2009 18:16:51 +0200 Subject: Search: match both by real and display name --- USearch.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'USearch.pas') 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 -- cgit v1.2.3