From a9cee8ee02123e12f239866809f088016f9d23c1 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Sat, 3 Oct 2020 17:24:49 +0330 Subject: 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. --- Libraries/LibLine/SuggestionManager.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Libraries/LibLine') 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 trailing_trivia; Style style; size_t start_index { 0 }; + size_t input_offset { 0 }; Utf32View text_view; Utf32View trivia_view; -- cgit v1.2.3