LibLine: Don't clear the displayed buffer when interrupted

Since we always restart on a new line, there's no reason to clear the
previous lines.
This commit is contained in:
AnotherTest 2021-01-07 00:28:12 +03:30 committed by Andreas Kling
parent 9b126a2250
commit 7059ca9b15
Notes: sideshowbarker 2024-07-18 23:58:31 +09:00

View File

@ -480,8 +480,7 @@ void Editor::interrupted()
m_finish = false; m_finish = false;
reposition_cursor(true); reposition_cursor(true);
if (m_suggestion_display->cleanup()) if (m_suggestion_display->cleanup())
reposition_cursor(); reposition_cursor(true);
cleanup();
fprintf(stderr, "\n"); fprintf(stderr, "\n");
fflush(stderr); fflush(stderr);
m_buffer.clear(); m_buffer.clear();