mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
LibLine: Avoid trying to restore() if the editor isn't initialized
Fixes #6472.
This commit is contained in:
parent
e1e84fe0fe
commit
74f0fdab98
Notes:
sideshowbarker
2024-07-18 19:24:07 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/74f0fdab986 Pull-request: https://github.com/SerenityOS/serenity/pull/6483 Issue: https://github.com/SerenityOS/serenity/issues/6471 Issue: https://github.com/SerenityOS/serenity/issues/6472
1 changed files with 3 additions and 1 deletions
|
@ -600,7 +600,9 @@ void Editor::really_quit_event_loop()
|
|||
m_buffer.clear();
|
||||
m_chars_touched_in_the_middle = buffer().size();
|
||||
m_is_editing = false;
|
||||
restore();
|
||||
|
||||
if (m_initialized)
|
||||
restore();
|
||||
|
||||
m_returned_line = string;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue