mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 14:39:06 +02:00
IDE/SynEdit: Ensure overviewgutter is updated, if highlighter changes
git-svn-id: trunk@36173 -
This commit is contained in:
parent
591db7a660
commit
252d9c00ff
@ -5705,6 +5705,10 @@ begin
|
||||
end;
|
||||
RecalcCharExtent;
|
||||
ScanRanges; // Todo: Skip if paintlocked
|
||||
// There may not have been a scan
|
||||
if fHighlighter <> nil then
|
||||
FHighlighter.CurrentLines := FLines;
|
||||
FLines.SendNotification(senrHighlightChanged, FLines, -1, -1);
|
||||
finally
|
||||
DecPaintLock;
|
||||
end;
|
||||
|
@ -933,6 +933,7 @@ begin
|
||||
TSynEditStringList(TextBuffer).AddGenericHandler(senrTextBufferChanged,
|
||||
TMethod({$IFDEF FPC}@{$ENDIF}BufferChanged));
|
||||
//LineCountChanged(nil, 0, 0);
|
||||
HighlightChanged(nil,-1,-1);
|
||||
end;
|
||||
|
||||
procedure TIDESynGutterLOvProviderPascal.HighlightChanged(Sender: TSynEditStrings; AIndex,
|
||||
|
Loading…
Reference in New Issue
Block a user