1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

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
parent ff6bac4854
commit 81bc861085
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;