1
Fork 0
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:
Ali Mohammad Pur 2021-04-19 14:29:53 +04:30 committed by Linus Groh
parent e1e84fe0fe
commit 74f0fdab98

View file

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