From 87e207727c20151811c0888b391b5071840c3a42 Mon Sep 17 00:00:00 2001 From: Koni Marti Date: Sun, 9 Apr 2023 23:26:21 +0200 Subject: attach: focus terminal for file picker Focus terminal for file picker to ensure that terminal is correctly redrawn when using it. After commit 382aea4a ("terminal: avoid high cpu usage when not focused"), the file picker terminal in the attach command (when called with the -m flag) would not work as expected. Signed-off-by: Koni Marti Tested-by: Bence Ferdinandy Acked-by: Robin Jarry --- commands/compose/attach.go | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/compose/attach.go b/commands/compose/attach.go index 520fc6f7..cf11af44 100644 --- a/commands/compose/attach.go +++ b/commands/compose/attach.go @@ -124,6 +124,7 @@ func (a Attach) openMenu(aerc *widgets.Aerc, args []string) error { if err != nil { return err } + t.Focus(true) t.OnClose = func(err error) { defer func() { if err := picks.Close(); err != nil { -- cgit