mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 10:56:06 +02:00
SynEdit,SyncroEdit: Fixed CPU usage 9editor redraw) while inactive. Issue #14191
git-svn-id: trunk@20945 -
This commit is contained in:
parent
de500e63ba
commit
ea03b8aa2d
@ -709,6 +709,7 @@ end;
|
||||
|
||||
procedure TSynPluginSyncroEditMarkup.DoInvalidate;
|
||||
begin
|
||||
if not Enabled then exit;
|
||||
// TODO: GutterPaint does not trigger Markup modules
|
||||
TSynEdit(SynEdit).Invalidate;
|
||||
//if TSynEdit(SynEdit).GutterWidth < FGutterGlyph.Width then
|
||||
@ -1017,9 +1018,11 @@ begin
|
||||
If (not SelectionObj.SelAvail) or (SelectionObj.ActiveSelectionMode = smColumn) then begin
|
||||
FLastSelStart := Point(-1,-1);
|
||||
FLastSelEnd := Point(-1,-1);
|
||||
FWordIndex.Clear;
|
||||
if Active then Editor.Invalidate;
|
||||
Active := False;
|
||||
if Active then begin
|
||||
FWordIndex.Clear;
|
||||
Editor.Invalidate;
|
||||
Active := False;
|
||||
end;
|
||||
FMode := spseIncative;
|
||||
exit;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user