mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibGUI: Clear undo stack when opening a new document
This commit is contained in:
committed by
Andreas Kling
parent
88803b2e34
commit
67537bfc80
@@ -41,6 +41,7 @@ TextDocument::~TextDocument()
|
||||
bool TextDocument::set_text(const StringView& text)
|
||||
{
|
||||
m_client_notifications_enabled = false;
|
||||
m_undo_stack.clear();
|
||||
m_spans.clear();
|
||||
remove_all_lines();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user