mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
LibGUI: Clear undo stack when opening a new document
This commit is contained in:
committed by
Andreas Kling
parent
88803b2e34
commit
67537bfc80
Notes:
sideshowbarker
2024-07-18 18:39:29 +09:00
Author: https://github.com/pakerwreah Commit: https://github.com/SerenityOS/serenity/commit/67537bfc80e Pull-request: https://github.com/SerenityOS/serenity/pull/6868 Reviewed-by: https://github.com/awesomekling
@@ -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