diff --git a/internal/ui/command.go b/internal/ui/command.go index 9fc87c65..3586d622 100644 --- a/internal/ui/command.go +++ b/internal/ui/command.go @@ -26,7 +26,12 @@ type Command struct { // NewCommand returns a new command view. func NewCommand(styles *config.Styles, m *model.FishBuff) *Command { - c := Command{styles: styles, TextView: tview.NewTextView(), model: m} + c := Command{ + styles: styles, + TextView: tview.NewTextView(), + model: m, + suggestionIndex: -1, + } c.SetWordWrap(true) c.SetWrap(true) c.SetDynamicColors(true)