diff options
Diffstat (limited to 'Userland/Libraries/LibLine/Editor.cpp')
-rw-r--r-- | Userland/Libraries/LibLine/Editor.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Userland/Libraries/LibLine/Editor.cpp b/Userland/Libraries/LibLine/Editor.cpp index d66cfde642..0f0a12b184 100644 --- a/Userland/Libraries/LibLine/Editor.cpp +++ b/Userland/Libraries/LibLine/Editor.cpp @@ -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; |