mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibLine: Add support for user-controlled masking
This commit is contained in:
parent
c257d27f0b
commit
78dc77f7e4
Notes:
sideshowbarker
2024-07-17 10:39:33 +09:00
Author: https://github.com/alimpfard
Commit: 78dc77f7e4
Pull-request: https://github.com/SerenityOS/serenity/pull/13884
Reviewed-by: https://github.com/linusg
5 changed files with 212 additions and 59 deletions
|
@ -345,8 +345,8 @@ void Editor::enter_search()
|
|||
// Manually cleanup the search line.
|
||||
OutputFileStream stderr_stream { stderr };
|
||||
reposition_cursor(stderr_stream);
|
||||
auto search_metrics = actual_rendered_string_metrics(search_string);
|
||||
auto metrics = actual_rendered_string_metrics(search_prompt);
|
||||
auto search_metrics = actual_rendered_string_metrics(search_string, {});
|
||||
auto metrics = actual_rendered_string_metrics(search_prompt, {});
|
||||
VT::clear_lines(0, metrics.lines_with_addition(search_metrics, m_num_columns) + search_end_row - m_origin_row - 1, stderr_stream);
|
||||
|
||||
reposition_cursor(stderr_stream);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue