mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +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:
parent
3a231c00aa
commit
6985b4008a
Notes:
sideshowbarker
2024-07-18 22:32:43 +09:00
Author: https://github.com/alimpfard
Commit: 6985b4008a
Pull-request: https://github.com/SerenityOS/serenity/pull/5246
Issue: https://github.com/SerenityOS/serenity/issues/5233
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue