diff options
author | Timmy Douglas <mail@timmydouglas.com> | 2020-01-08 20:38:56 -0800 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-01-09 14:32:12 -0500 |
commit | eca3863242da2722e69b573e2559351b5219b63c (patch) | |
tree | 9f96a8dfe190f9193b976e40f241f68671dc7d2a /lib | |
parent | a40959c129c54aba563828114e8ae58ab14492b1 (diff) | |
download | aerc-eca3863242da2722e69b573e2559351b5219b63c.tar.gz |
compose: don't call ti.tabcomplete when it is nil
Diffstat (limited to 'lib')
-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() |