mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:14:58 +00:00
LibLine: Ensure suggestions are reset after ^C
This commit is contained in:
parent
3bd9566847
commit
30d8c5f301
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());
|
auto stderr_stream = TRY(Core::File::standard_error());
|
||||||
TRY(reposition_cursor(*stderr_stream, true));
|
TRY(reposition_cursor(*stderr_stream, true));
|
||||||
if (TRY(m_suggestion_display->cleanup())) {
|
if (TRY(m_suggestion_display->cleanup())) {
|
||||||
m_times_tab_pressed = 0;
|
|
||||||
TRY(reposition_cursor(*stderr_stream, true));
|
TRY(reposition_cursor(*stderr_stream, true));
|
||||||
|
TRY(cleanup_suggestions());
|
||||||
}
|
}
|
||||||
TRY(stderr_stream->write_until_depleted("\r"sv.bytes()));
|
TRY(stderr_stream->write_until_depleted("\r"sv.bytes()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue