mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 22:29:25 +02:00
SynEdit: fold-view, don't update internal values from an outdated Highlighter. Wait until the HL is up to date. Issue #30354
This commit is contained in:
parent
a9014cd33a
commit
d3aee748ac
@ -3422,9 +3422,13 @@ var
|
||||
NewClassifications :TFoldNodeClassifications;
|
||||
begin
|
||||
if fLinesInWindow < 0 then exit;
|
||||
if (fLockCount > 0) and
|
||||
((not FInTopLineChanged) or (fvfNeedCalcMaps in FFlags)) // TODO: Scan now, to avoid invalidate later
|
||||
if ( (fLockCount > 0) and
|
||||
((not FInTopLineChanged) or (fvfNeedCalcMaps in FFlags)) // TODO: Scan now, to avoid invalidate later
|
||||
) or
|
||||
( (HighLighter <> nil) and HighLighter.NeedScan )
|
||||
// TODO: HighLighter.CurrentRanges.NeedsReScanStartIndex < "last line in windows"
|
||||
then begin
|
||||
assert(fLockCount > 0, 'TSynEditFoldedView.CalculateMaps: fLockCount > 0');
|
||||
Include(FFlags, fvfNeedCalcMaps);
|
||||
exit;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user