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
Notes: sideshowbarker 2024-07-18 19:24:07 +09:00

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;