mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-30 05:09:01 +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
Notes:
sideshowbarker
2024-07-18 18:28:54 +09:00
Author: https://github.com/awesomekling
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