IDE/SynEdit: Ensure overviewgutter is updated, if highlighter changes

git-svn-id: trunk@36173 -
This commit is contained in:
martin 2012-03-20 01:15:22 +00:00
parent 591db7a660
commit 252d9c00ff
2 changed files with 5 additions and 0 deletions

View File

@ -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;

View File

@ -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,