EditorOptions: Fixed possible endless loop

git-svn-id: trunk@21183 -
This commit is contained in:
martin 2009-08-12 01:38:48 +00:00
parent bb7f662fae
commit 5e096085eb

View File

@ -1248,8 +1248,10 @@ begin
while (i >= 0) do
begin
e := PreviewSyn.Attribute[i];
if e.Name = '' then
if e.Name = '' then begin
dec(i);
continue;
end;
if e.Name = AdditionalHighlightAttributes[AddAttr] then
begin
Special := True;