mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:57:44 +00:00
LibLine: Redraw the suggestions when terminal size changes
This commit is contained in:
parent
3cfab83e7e
commit
e1e84fe0fe
4 changed files with 34 additions and 9 deletions
|
@ -35,6 +35,8 @@ namespace Line {
|
|||
|
||||
void XtermSuggestionDisplay::display(const SuggestionManager& manager)
|
||||
{
|
||||
did_display();
|
||||
|
||||
size_t longest_suggestion_length = 0;
|
||||
size_t longest_suggestion_byte_length = 0;
|
||||
|
||||
|
@ -172,6 +174,8 @@ void XtermSuggestionDisplay::display(const SuggestionManager& manager)
|
|||
|
||||
bool XtermSuggestionDisplay::cleanup()
|
||||
{
|
||||
did_cleanup();
|
||||
|
||||
if (m_lines_used_for_last_suggestions) {
|
||||
VT::clear_lines(0, m_lines_used_for_last_suggestions);
|
||||
m_lines_used_for_last_suggestions = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue