diff options
Diffstat (limited to 'Userland/Libraries/LibLine/Editor.cpp')
-rw-r--r-- | Userland/Libraries/LibLine/Editor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibLine/Editor.cpp b/Userland/Libraries/LibLine/Editor.cpp index 0f0a12b184..8d4dfa54d5 100644 --- a/Userland/Libraries/LibLine/Editor.cpp +++ b/Userland/Libraries/LibLine/Editor.cpp @@ -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; |