mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-07 20:31:04 +03:00
LibLine: Ensure suggestions are reset after ^C
This commit is contained in:
parent
3bd9566847
commit
30d8c5f301
Notes:
sideshowbarker
2024-07-17 18:08:55 +09:00
Author: https://github.com/gabrieltassinari Commit: https://github.com/SerenityOS/serenity/commit/30d8c5f301 Pull-request: https://github.com/SerenityOS/serenity/pull/23383 Issue: https://github.com/SerenityOS/serenity/issues/23382
@ -628,8 +628,8 @@ ErrorOr<void> Editor::interrupted()
|
||||
auto stderr_stream = TRY(Core::File::standard_error());
|
||||
TRY(reposition_cursor(*stderr_stream, true));
|
||||
if (TRY(m_suggestion_display->cleanup())) {
|
||||
m_times_tab_pressed = 0;
|
||||
TRY(reposition_cursor(*stderr_stream, true));
|
||||
TRY(cleanup_suggestions());
|
||||
}
|
||||
TRY(stderr_stream->write_until_depleted("\r"sv.bytes()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user