Codetool: fix endless loop in "Find block begin", when already at start of file. Issue #40326

This commit is contained in:
Martin 2023-06-18 10:37:55 +02:00
parent ac18b36c00
commit 4f1d9530d5

View File

@ -5339,6 +5339,8 @@ begin
ReadBackTilBlockEnd(true);
if CursorOnStart then exit(true);
end;
if CurPos.StartPos <= 1 then // Issue #40326
break;
ReadPriorAtom;
until CurPos.StartPos<MinPos;
end;