compose: don't call ti.tabcomplete when it is nil
This commit is contained in:
parent
a40959c129
commit
eca3863242
|
@ -275,6 +275,10 @@ func (ti *TextInput) updateCompletions() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ti *TextInput) showCompletions() {
|
func (ti *TextInput) showCompletions() {
|
||||||
|
if ti.tabcomplete == nil {
|
||||||
|
// no completer
|
||||||
|
return
|
||||||
|
}
|
||||||
ti.completions = ti.tabcomplete(ti.StringLeft())
|
ti.completions = ti.tabcomplete(ti.StringLeft())
|
||||||
ti.completeIndex = -1
|
ti.completeIndex = -1
|
||||||
ti.Invalidate()
|
ti.Invalidate()
|
||||||
|
|
Loading…
Reference in New Issue