mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:38:13 +00:00
LibGUI: Implement merging of TextDocument's InsertTextCommand
When performing multiple text insertions in a row, they will now be merged into a single InsertTextCommand.
This commit is contained in:
parent
ff912946ae
commit
ff6bac4854
2 changed files with 16 additions and 0 deletions
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue