1
Fork 0
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:
Andreas Kling 2021-05-08 16:52:08 +02:00
parent ff912946ae
commit ff6bac4854
2 changed files with 16 additions and 0 deletions

View file

@ -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; }