summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lib/ui/textinput.go4
1 files changed, 4 insertions, 0 deletions
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()