Skip to content

Commit f5224e1

Browse files
committed
Work around access violation in highlighter, which raises after a successful reconnect. See http://www.heidisql.com/forum.php?t=23009
1 parent d75ae73 commit f5224e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/synedit/Source/SynEditHighlighter.pas

+1-1
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ procedure TSynCustomHighlighter.Next;
11741174
Delta := Run - fOldRun;
11751175
while Delta > 0 do
11761176
begin
1177-
while fExpandedLine[ExpandedRun] = FillerChar do
1177+
while (Length(fExpandedLine) < ExpandedRun) and (fExpandedLine[ExpandedRun] = FillerChar) do
11781178
inc(ExpandedRun);
11791179
inc(ExpandedRun);
11801180
dec(Delta);

0 commit comments

Comments
 (0)