Merge pull request #633 from davidnemec/fix-empty-autocomplete-crash
Fix empty autocomplete crashmine
commit
bad6d212f4
|
|
@ -26,7 +26,12 @@ type Command struct {
|
||||||
|
|
||||||
// NewCommand returns a new command view.
|
// NewCommand returns a new command view.
|
||||||
func NewCommand(styles *config.Styles, m *model.FishBuff) *Command {
|
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.SetWordWrap(true)
|
||||||
c.SetWrap(true)
|
c.SetWrap(true)
|
||||||
c.SetDynamicColors(true)
|
c.SetDynamicColors(true)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue