summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/TextEditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGUI/TextEditor.h')
-rw-r--r--Userland/Libraries/LibGUI/TextEditor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/TextEditor.h b/Userland/Libraries/LibGUI/TextEditor.h
index 7c6f4b8978..7a4d14eba3 100644
--- a/Userland/Libraries/LibGUI/TextEditor.h
+++ b/Userland/Libraries/LibGUI/TextEditor.h
@@ -285,12 +285,12 @@ private:
{
auto command = make<T>(*m_document, forward<Args>(args)...);
command->perform_formatting(*this);
- on_edit_action(*command);
+ will_execute(*command);
command->execute_from(*this);
m_document->add_to_undo_stack(move(command));
}
- virtual void on_edit_action(const Command&) { }
+ virtual void will_execute(TextDocumentUndoCommand const&) { }
Type m_type { MultiLine };
Mode m_mode { Editable };