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