aboutsummaryrefslogtreecommitdiffstats
path: root/commands/compose
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2023-04-09 23:26:21 +0200
committerRobin Jarry <robin@jarry.cc>2023-04-10 15:00:23 +0200
commit87e207727c20151811c0888b391b5071840c3a42 (patch)
tree20de01ced8660ffe404577c70374c300132326ab /commands/compose
parentdd575e2867b012b78d89503583ac9a368adcdd18 (diff)
downloadaerc-87e207727c20151811c0888b391b5071840c3a42.tar.gz
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 <koni.marti@gmail.com> Tested-by: Bence Ferdinandy <bence@ferdinandy.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/compose')
-rw-r--r--commands/compose/attach.go1
1 files changed, 1 insertions, 0 deletions
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 {