mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibLine: Redraw the suggestions when terminal size changes
This commit is contained in:
committed by
Linus Groh
parent
3cfab83e7e
commit
e1e84fe0fe
@@ -576,6 +576,20 @@ void Editor::interrupted()
|
||||
});
|
||||
}
|
||||
|
||||
void Editor::resized()
|
||||
{
|
||||
m_was_resized = true;
|
||||
m_previous_num_columns = m_num_columns;
|
||||
get_terminal_size();
|
||||
|
||||
reposition_cursor(true);
|
||||
m_suggestion_display->redisplay(m_suggestion_manager, m_num_lines, m_num_columns);
|
||||
reposition_cursor();
|
||||
|
||||
if (m_is_searching)
|
||||
m_search_editor->resized();
|
||||
}
|
||||
|
||||
void Editor::really_quit_event_loop()
|
||||
{
|
||||
m_finish = false;
|
||||
|
||||
Reference in New Issue
Block a user