mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +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
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