mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-27 22:57:14 +01:00
IDE: fixed comparing file names case insensitive
git-svn-id: trunk@37753 -
This commit is contained in:
parent
7185755781
commit
72a324323b
@ -371,7 +371,7 @@ begin
|
|||||||
// check if special file
|
// check if special file
|
||||||
if (FileInfo.Name='.') or (FileInfo.Name='..') or (FileInfo.Name='') then
|
if (FileInfo.Name='.') or (FileInfo.Name='..') or (FileInfo.Name='') then
|
||||||
continue;
|
continue;
|
||||||
if (AnsiCompareText(CaseInsensitiveFilename,FileInfo.Name)=0)
|
if (CompareFilenamesIgnoreCase(CaseInsensitiveFilename,FileInfo.Name)=0)
|
||||||
and ((not IgnoreExact)
|
and ((not IgnoreExact)
|
||||||
or (CompareFilenames(CaseInsensitiveFilename,FileInfo.Name)<>0))
|
or (CompareFilenames(CaseInsensitiveFilename,FileInfo.Name)<>0))
|
||||||
then begin
|
then begin
|
||||||
|
|||||||
@ -5544,7 +5544,7 @@ var
|
|||||||
if siffCaseSensitive in SearchFlags then
|
if siffCaseSensitive in SearchFlags then
|
||||||
Result:=SearchedFilename=AFilename
|
Result:=SearchedFilename=AFilename
|
||||||
else
|
else
|
||||||
Result:=AnsiCompareText(SearchedFilename,AFilename)=0;
|
Result:=CompareFilenamesIgnoreCase(SearchedFilename,AFilename)=0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user