summaryrefslogtreecommitdiff
path: root/Libraries/LibLine
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2020-10-03 17:24:49 +0330
committerAndreas Kling <kling@serenityos.org>2020-10-04 23:12:28 +0200
commita9cee8ee02123e12f239866809f088016f9d23c1 (patch)
treebd76d9bb94ecd8602f2d608102fa27457a220bc7 /Libraries/LibLine
parentf164b808b5a6ed69f6fd0aea8ee0c88f4d377a24 (diff)
downloadserenity-a9cee8ee02123e12f239866809f088016f9d23c1.zip
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.
Diffstat (limited to 'Libraries/LibLine')
-rw-r--r--Libraries/LibLine/SuggestionManager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibLine/SuggestionManager.h b/Libraries/LibLine/SuggestionManager.h
index dfe20dd3ef..0b804fef08 100644
--- a/Libraries/LibLine/SuggestionManager.h
+++ b/Libraries/LibLine/SuggestionManager.h
@@ -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;