mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 13:39:24 +02:00
codetools: fixed InsertAllNewUnitsToMainUsesSection, issue #40522
This commit is contained in:
parent
1acc98a582
commit
00e6d8fbd8
@ -8281,19 +8281,9 @@ begin
|
||||
repeat
|
||||
ReadNextAtom; // read name
|
||||
if AtomIsChar(';') then break;
|
||||
CurUnitName:=ExtractUsedUnitNameAtCursor();
|
||||
CurUnitName:=ExtractUsedUnitNameAtCursor(); // moves cursor behind used unit and InFilename
|
||||
RemoveNewMainUsesSectionUnit(PChar(CurUnitName));
|
||||
if fNewMainUsesSectionUnits.Count=0 then exit;
|
||||
ReadNextAtom;
|
||||
while AtomIsChar('.') do
|
||||
begin
|
||||
ReadNextAtom;
|
||||
ReadNextAtom;
|
||||
end;
|
||||
if UpAtomIs('IN') then begin
|
||||
ReadNextAtom;
|
||||
ReadNextAtom;
|
||||
end;
|
||||
if AtomIsChar(';') then break;
|
||||
if not AtomIsChar(',') then break;
|
||||
until (CurPos.StartPos>SrcLen);
|
||||
|
Loading…
Reference in New Issue
Block a user