mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-18 05:50:54 +01:00
SynEdit: Play macro in one step (one undo block / BeginUpdate)
git-svn-id: trunk@37916 -
This commit is contained in:
parent
729e3aff3d
commit
e54706e814
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user