mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 19:19:19 +02:00
EditorOptions: Fixed possible endless loop
git-svn-id: trunk@21183 -
This commit is contained in:
parent
bb7f662fae
commit
5e096085eb
@ -1248,8 +1248,10 @@ begin
|
|||||||
while (i >= 0) do
|
while (i >= 0) do
|
||||||
begin
|
begin
|
||||||
e := PreviewSyn.Attribute[i];
|
e := PreviewSyn.Attribute[i];
|
||||||
if e.Name = '' then
|
if e.Name = '' then begin
|
||||||
|
dec(i);
|
||||||
continue;
|
continue;
|
||||||
|
end;
|
||||||
if e.Name = AdditionalHighlightAttributes[AddAttr] then
|
if e.Name = AdditionalHighlightAttributes[AddAttr] then
|
||||||
begin
|
begin
|
||||||
Special := True;
|
Special := True;
|
||||||
|
Loading…
Reference in New Issue
Block a user