LibGUI: Implement merging of TextDocument's RemoveTextCommand

When deleting text by pressing backspace, the commands will be merged
into a single RemoveTextCommand.
This commit is contained in:
Andreas Kling 2021-05-08 16:53:08 +02:00
commit 81bc861085
Notes: sideshowbarker 2024-07-18 18:28:54 +09:00
2 changed files with 19 additions and 0 deletions

View file

@ -221,6 +221,7 @@ public:
virtual void undo() override;
virtual void redo() override;
const TextRange& range() const { return m_range; }
virtual bool merge_with(GUI::Command const&) override;
private:
String m_text;