1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00

LibLine: Place the search editor prompt at the right line after ^L

...as the search editor prompt has to always stay after the main prompt preview.
This commit is contained in:
AnotherTest 2021-02-07 03:14:42 +03:30 committed by Andreas Kling
parent 3a231c00aa
commit 6985b4008a

View file

@ -293,7 +293,8 @@ void Editor::enter_search()
// move the search prompt below ours
// and tell it to redraw itself
search_editor.set_origin(2, 1);
auto prompt_end_line = current_prompt_metrics().lines_with_addition(m_cached_buffer_metrics, m_num_columns);
search_editor.set_origin(prompt_end_line + 1, 1);
search_editor.m_refresh_needed = true;
return false;