Merge pull request #633 from davidnemec/fix-empty-autocomplete-crash

Fix empty autocomplete crash
mine
Fernand Galiana 2020-03-27 05:48:39 -06:00 committed by GitHub
commit bad6d212f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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)