diff --git a/lib/ui/textinput.go b/lib/ui/textinput.go index b0af21f..f7301fb 100644 --- a/lib/ui/textinput.go +++ b/lib/ui/textinput.go @@ -275,6 +275,10 @@ func (ti *TextInput) updateCompletions() { } func (ti *TextInput) showCompletions() { + if ti.tabcomplete == nil { + // no completer + return + } ti.completions = ti.tabcomplete(ti.StringLeft()) ti.completeIndex = -1 ti.Invalidate()