diff --git a/Terminal.Gui/Views/TextField.cs b/Terminal.Gui/Views/TextField.cs index 04995610c..9e4658e57 100644 --- a/Terminal.Gui/Views/TextField.cs +++ b/Terminal.Gui/Views/TextField.cs @@ -1016,8 +1016,7 @@ public class TextField : View RenderCaption (); - ProcessAutocomplete (); - + DrawAutocomplete (); _isDrawing = false; } @@ -1767,8 +1766,21 @@ public class TextField : View return; } - // draw autocomplete GenerateSuggestions (); + } + + private void DrawAutocomplete () + { + + if (SelectedLength > 0) + { + return; + } + + if (Autocomplete?.Context == null) + { + return; + } var renderAt = new Point ( Autocomplete.Context.CursorPosition,