From 04869bd2a39abe7982428c00f5c024a89099f679 Mon Sep 17 00:00:00 2001 From: Koni Marti Date: Mon, 21 Nov 2022 22:13:19 +0100 Subject: 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 Tested-by: Bence Ferdinandy Acked-by: Robin Jarry --- widgets/aerc.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'widgets') 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)) } } -- cgit