~sircmpwn/aerc

compose: don't call ti.tabcomplete when it is nil v1 PROPOSED

Timmy Douglas
Timmy Douglas: 1
 compose: don't call ti.tabcomplete when it is nil

 1 files changed, 4 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/aerc/patches/9480/mbox | git am -3
Learn more about email & git

[PATCH] compose: don't call ti.tabcomplete when it is nil Export this patch

Timmy Douglas
---
 lib/ui/textinput.go | 4 ++++
 1 file changed, 4 insertions(+)

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()
-- 
2.20.1
Thanks!

To git.sr.ht:~sircmpwn/aerc
   a40959c..598e39f  master -> master
View this thread in the archives