1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 18:05:08 +00:00

LibGUI: Make autoformatting performed on InsertTextCommand visible to on_edit_action

This commit is contained in:
Sahan Fernando 2020-12-18 02:44:02 +11:00 committed by Andreas Kling
parent 4232874270
commit 8dc0d9b7b7
3 changed files with 65 additions and 44 deletions

View file

@ -260,6 +260,7 @@ private:
inline void execute(Args&&... args)
{
auto command = make<T>(*m_document, forward<Args>(args)...);
command->perform_formatting(*this);
on_edit_action(*command);
command->execute_from(*this);
m_document->add_to_undo_stack(move(command));