mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 04:12:34 +02:00
codetools: fixed ReadPrioAtomSafe when cleanpos at end of atom
git-svn-id: trunk@58274 -
This commit is contained in:
parent
4da68d03f2
commit
e6360472a3
@ -1824,14 +1824,17 @@ begin
|
||||
// first atom of node is behind CleanPos => try prior node
|
||||
Node:=Node.Prior;
|
||||
until false;
|
||||
if CurPos.EndPos>=CleanPos then begin
|
||||
if CurPos.EndPos>CleanPos then begin
|
||||
CurPos:=CleanAtomPosition;
|
||||
exit;
|
||||
end;
|
||||
if CurPos.EndPos=CleanPos then
|
||||
exit;
|
||||
repeat
|
||||
ReadNextAtom;
|
||||
if CurPos.EndPos>=CleanPos then begin
|
||||
UndoReadNextAtom;
|
||||
if CurPos.EndPos>CleanPos then
|
||||
UndoReadNextAtom;
|
||||
exit;
|
||||
end;
|
||||
until false;
|
||||
|
Loading…
Reference in New Issue
Block a user