diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-10-03 18:16:51 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-10-03 18:16:51 +0200 |
| commit | 00c70c7bf0f07e3f525fc56497abb3b1a505bc41 (patch) | |
| tree | 671e95f69e3a562df751b74cd0c8ae529a88fa02 /USearch.pas | |
| parent | 8d005b7b0562eba38cad48c3c6f99e47667f8551 (diff) | |
| download | tuxcmd-00c70c7bf0f07e3f525fc56497abb3b1a505bc41.tar.xz | |
Search: match both by real and display name
Diffstat (limited to 'USearch.pas')
| -rw-r--r-- | USearch.pas | 2 |
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 |
