eca3863242da2722e69b573e2559351b5219b63c — Timmy Douglas 13 days ago a40959c
compose: don't call ti.tabcomplete when it is nil
1 files changed, 4 insertions(+), 0 deletions(-)

M lib/ui/textinput.go
M lib/ui/textinput.go => lib/ui/textinput.go +4 -0
@@ 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()