namespace Terminal.Gui.Views;
///
/// Renders an overlay on another view at a given point that allows selecting from a range of 'autocomplete'
/// options. An implementation on a TextView.
///
public class TextViewAutocomplete : PopupAutocomplete
{
///
protected override void DeleteTextBackwards () { ((TextView)HostControl!).DeleteCharLeft (); }
///
protected override void InsertText (string accepted) { ((TextView)HostControl!).InsertText (accepted); }
///
protected override void SetCursorPosition (int column)
{
((TextView)HostControl!).CursorPosition =
new (column, ((TextView)HostControl).CurrentRow);
}
}