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:
parent
ff6bac4854
commit
81bc861085
2 changed files with 19 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue