From eca3863242da2722e69b573e2559351b5219b63c Mon Sep 17 00:00:00 2001 From: Timmy Douglas Date: Wed, 8 Jan 2020 20:38:56 -0800 Subject: [PATCH] compose: don't call ti.tabcomplete when it is nil --- lib/ui/textinput.go | 4 ++++ 1 file changed, 4 insertions(+) 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()