SynEdit: ScanRanges, make sure all line-change notifications have been send before scanning and markup.

(cherry picked from commit a13c86d979)
This commit is contained in:
Martin 2025-06-24 17:53:54 +02:00
parent d8fc020d66
commit 0686369b97

View File

@ -2616,6 +2616,7 @@ begin
FTrimmedLinesView.UnLock; // Must be unlocked after caret // May Change lines
if (FPaintLock=1) and (not WaitingForInitialSize) then begin
FLines.FlushNotificationCache;
ScanChangedLines(FChangedLinesStart, FChangedLinesEnd, FChangedLinesDiff,
FLastTextChangeStamp <> TSynEditStringList(FLines).TextChangeStamp);
if sfAfterLoadFromFileNeeded in fStateFlags then