1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:17: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:
AnotherTest 2020-10-03 17:24:49 +03:30 committed by Andreas Kling
parent f164b808b5
commit a9cee8ee02
2 changed files with 16 additions and 5 deletions

View file

@ -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;