mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 06:38:10 +00:00
LibLine: Avoid trying to restore() if the editor isn't initialized
Fixes #6472.
This commit is contained in:
parent
e1e84fe0fe
commit
74f0fdab98
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
Add a link
Reference in a new issue