mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-14 22:31:29 +03: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:
parent
9b126a2250
commit
7059ca9b15
Notes:
sideshowbarker
2024-07-18 23:58:31 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/7059ca9b15b Pull-request: https://github.com/SerenityOS/serenity/pull/4839 Reviewed-by: https://github.com/tomuta
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user