diff --git a/components/synedit/Source/SynEditHighlighter.pas b/components/synedit/Source/SynEditHighlighter.pas index a0f72401..0d6d2125 100644 --- a/components/synedit/Source/SynEditHighlighter.pas +++ b/components/synedit/Source/SynEditHighlighter.pas @@ -1174,7 +1174,7 @@ begin Delta := Run - fOldRun; while Delta > 0 do begin - while (Length(fExpandedLine) < ExpandedRun) and (fExpandedLine[ExpandedRun] = FillerChar) do + while fExpandedLine[ExpandedRun] = FillerChar do inc(ExpandedRun); inc(ExpandedRun); dec(Delta);