namespace Terminal.Gui; /// /// Describes the current state of a which is proposing autocomplete. Suggestions are based on /// this state. /// public class AutocompleteContext { /// Creates a new instance of the class public AutocompleteContext (List currentLine, int cursorPosition, bool canceled = false) { CurrentLine = currentLine; CursorPosition = cursorPosition; Canceled = canceled; } /// Gets or sets if the autocomplete was canceled from popup. public bool Canceled { get; set; } /// The text on the current line. public List CurrentLine { get; set; } /// The position of the input cursor within the . public int CursorPosition { get; set; } }