mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue