SynEdit: Play macro in one step (one undo block / BeginUpdate)

git-svn-id: trunk@37916 -
This commit is contained in:
martin 2012-07-12 12:36:10 +00:00
parent 729e3aff3d
commit e54706e814

View File

@ -709,9 +709,14 @@ begin
fState := msPlaying;
try
StateChanged;
for cEvent := 0 to EventCount -1 do begin
Events[ cEvent ].Playback( aEditor );
if FStopRequested then break;
aEditor.BeginUpdate;
try
for cEvent := 0 to EventCount -1 do begin
Events[ cEvent ].Playback( aEditor );
if FStopRequested then break;
end;
finally
aEditor.EndUpdate;
end;
finally
fState := msStopped;