aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/aerc.go
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-11-21 22:13:19 +0100
committerRobin Jarry <robin@jarry.cc>2022-11-22 22:27:21 +0100
commit04869bd2a39abe7982428c00f5c024a89099f679 (patch)
treeae0b09e77175dece1a05ae63979a2979e1cb0705 /widgets/aerc.go
parentd964d7d7a20a840c20913c21b41c5eb16abaae3c (diff)
downloadaerc-04869bd2a39abe7982428c00f5c024a89099f679.tar.gz
aerc: fix popover menu regression
Fix popover menu regression by triggering completions after the simulated key strokes have been processed. Commit 055c6dc6604f7f ("exline: don't draw completions for keybinds") removed a double-draw event and reinstated the tab completions correctly but it did not trigger the completion process again which was the expected behavior. Fixes: https://todo.sr.ht/~rjarry/aerc/104 Signed-off-by: Koni Marti <koni.marti@gmail.com> Tested-by: Bence Ferdinandy <bence@ferdinandy.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets/aerc.go')
-rw-r--r--widgets/aerc.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index 75b7d5ae..163ba9e0 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -270,6 +270,8 @@ func (aerc *Aerc) simulate(strokes []config.KeyStroke) {
exline.TabComplete(func(cmd string) ([]string, string) {
return aerc.complete(cmd), ""
})
+ // send tab to text input to trigger completion
+ exline.Event(tcell.NewEventKey(tcell.KeyTab, 0, tcell.ModNone))
}
}