mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 14:29:36 +02:00
codetools: TCTDirectoryCache.FindUnitSourceInCompletePath: fixed fixing unitname case from cache
git-svn-id: trunk@28921 -
This commit is contained in:
parent
39a85ba046
commit
564a8a78a9
@ -1030,6 +1030,9 @@ begin
|
||||
end;
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
AddToCache(UnitSrc,AUnitName,Result);
|
||||
end;
|
||||
if Result<>'' then begin
|
||||
// improve unit name
|
||||
NewUnitName:=ExtractFileNameOnly(Result);
|
||||
@ -1037,9 +1040,6 @@ begin
|
||||
and (AUnitName<>NewUnitName) then
|
||||
AUnitName:=NewUnitName;
|
||||
end;
|
||||
|
||||
AddToCache(UnitSrc,AUnitName,Result);
|
||||
end;
|
||||
end;
|
||||
//DebugLn('TCTDirectoryCache.FindUnitSourceInCompletePath RESULT AUnitName="',AUnitName,'" InFilename="',InFilename,'" Result=',Result);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user