summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/TextDocument.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-08 16:52:08 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-08 22:17:51 +0200
commitff6bac4854f7b699d0faf9ccabf47afa053459b8 (patch)
tree803d3baee7b449aa0fa93b803c63fe427e27facf /Userland/Libraries/LibGUI/TextDocument.h
parentff912946ae3e16c0d338199d77a42923a62a3f71 (diff)
downloadserenity-ff6bac4854f7b699d0faf9ccabf47afa053459b8.zip
LibGUI: Implement merging of TextDocument's InsertTextCommand
When performing multiple text insertions in a row, they will now be merged into a single InsertTextCommand.
Diffstat (limited to 'Userland/Libraries/LibGUI/TextDocument.h')
-rw-r--r--Userland/Libraries/LibGUI/TextDocument.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/TextDocument.h b/Userland/Libraries/LibGUI/TextDocument.h
index aac61254fb..f3a4c9a0cf 100644
--- a/Userland/Libraries/LibGUI/TextDocument.h
+++ b/Userland/Libraries/LibGUI/TextDocument.h
@@ -206,6 +206,7 @@ public:
virtual void perform_formatting(const TextDocument::Client&) override;
virtual void undo() override;
virtual void redo() override;
+ virtual bool merge_with(GUI::Command const&) override;
const String& text() const { return m_text; }
const TextRange& range() const { return m_range; }