mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-26 18:49:59 +02:00
SourceEditor: small optimization, no undo block for read only
git-svn-id: trunk@48349 -
This commit is contained in:
parent
7e6d02411c
commit
3102a20b2d
@ -2623,7 +2623,7 @@ begin
|
||||
if FCodeBuffer=nil then exit;
|
||||
//DebugLn(['TSourceEditor.UpdateCodeBuffer ',FCodeBuffer.FileName]);
|
||||
IncreaseIgnoreCodeBufferLock;
|
||||
SynEditor.BeginUpdate;
|
||||
SynEditor.BeginUpdate(False);
|
||||
try
|
||||
FCodeBuffer.Assign(SynEditor.Lines);
|
||||
FEditorStampCommitedToCodetools:=(SynEditor.Lines as TSynEditLines).TextChangeStamp;
|
||||
@ -9795,7 +9795,7 @@ begin
|
||||
begin
|
||||
//debugln(['TSourceEditorManager.OnIdle ',MarklingProducerCount]);
|
||||
aFilename:=SrcEdit.FileName;
|
||||
SrcEdit.EditorComponent.BeginUpdate;
|
||||
SrcEdit.EditorComponent.BeginUpdate(False);
|
||||
for i:=0 to MarklingProducerCount-1 do
|
||||
begin
|
||||
Marklings:=MarklingProducers[i].GetMarklings(aFilename,FreeList,FreeMarklings);
|
||||
|
Loading…
Reference in New Issue
Block a user