1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 20:25:07 +00:00

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

View file

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