aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ui
diff options
context:
space:
mode:
authorTimmy Douglas <mail@timmydouglas.com>2020-01-08 20:38:56 -0800
committerDrew DeVault <sir@cmpwn.com>2020-01-09 14:32:12 -0500
commiteca3863242da2722e69b573e2559351b5219b63c (patch)
tree9f96a8dfe190f9193b976e40f241f68671dc7d2a /lib/ui
parenta40959c129c54aba563828114e8ae58ab14492b1 (diff)
downloadaerc-eca3863242da2722e69b573e2559351b5219b63c.tar.gz
compose: don't call ti.tabcomplete when it is nil
Diffstat (limited to 'lib/ui')
-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 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()