diff options
Diffstat (limited to 'lib/ui')
-rw-r--r-- | lib/ui/textinput.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ui/textinput.go b/lib/ui/textinput.go index b0af21ff..f7301fb3 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() |