mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 22:40:30 +02:00
codetools: directory cache now ignores case on windows
git-svn-id: trunk@9617 -
This commit is contained in:
parent
fbcb1ced0c
commit
8473940844
@ -703,11 +703,15 @@ begin
|
||||
if AnyCase then begin
|
||||
exit;
|
||||
end else begin
|
||||
// check case
|
||||
// check case platform dependent
|
||||
{$IFDEF CaseInsensitiveFilenames}
|
||||
exit;
|
||||
{$ELSE}
|
||||
if (Result=lowercase(Result))
|
||||
or (Result=uppercase(Result))
|
||||
or (ExtractFileNameOnly(Result)=UnitName) then
|
||||
exit;
|
||||
{$ENDIF}
|
||||
end;
|
||||
end;
|
||||
inc(m);
|
||||
@ -844,6 +848,7 @@ begin
|
||||
Result:=FindUnitLink(UnitName);
|
||||
end;
|
||||
if Result<>'' then begin
|
||||
// improve unit name
|
||||
NewUnitName:=ExtractFileNameOnly(Result);
|
||||
if (NewUnitName<>lowercase(NewUnitName))
|
||||
and (UnitName<>NewUnitName) then
|
||||
|
Loading…
Reference in New Issue
Block a user