diff --git a/Userland/Libraries/LibLine/Editor.cpp b/Userland/Libraries/LibLine/Editor.cpp index ca15aeb78e..99cd037272 100644 --- a/Userland/Libraries/LibLine/Editor.cpp +++ b/Userland/Libraries/LibLine/Editor.cpp @@ -620,8 +620,10 @@ ErrorOr Editor::interrupted() { auto stderr_stream = TRY(Core::File::standard_error()); TRY(reposition_cursor(*stderr_stream, true)); - if (TRY(m_suggestion_display->cleanup())) + if (TRY(m_suggestion_display->cleanup())) { + m_times_tab_pressed = 0; TRY(reposition_cursor(*stderr_stream, true)); + } TRY(stderr_stream->write_until_depleted("\r"sv.bytes())); } m_buffer.clear();