mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 00:27:47 +00:00
Shell+LibLine: Record the input offset of completions
This makes the completion entry retain information about how much of the suggestion was part of the string that caused the match.
This commit is contained in:
parent
f164b808b5
commit
a9cee8ee02
Notes:
sideshowbarker
2024-07-19 02:03:04 +09:00
Author: https://github.com/alimpfard
Commit: a9cee8ee02
Pull-request: https://github.com/SerenityOS/serenity/pull/3675
Reviewed-by: https://github.com/awesomekling
2 changed files with 16 additions and 5 deletions
|
@ -72,6 +72,7 @@ public:
|
|||
Vector<u32> trailing_trivia;
|
||||
Style style;
|
||||
size_t start_index { 0 };
|
||||
size_t input_offset { 0 };
|
||||
|
||||
Utf32View text_view;
|
||||
Utf32View trivia_view;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue