SynEdit: missing HL initialization. Issue #40999

This commit is contained in:
Martin 2024-06-25 09:54:06 +02:00
parent 686f08a68e
commit ccda6ea381

View File

@ -738,6 +738,7 @@ begin
if not (SynEdit.Highlighter is TSynCustomFoldHighlighter) then
exit;
hl := TSynCustomFoldHighlighter(SynEdit.Highlighter);
hl.CurrentLines := ViewedTextBuffer;
if hl.NeedScan then
exit;
if not FMarkupInfoCurrentFold.IsEnabled then begin