From e59122150932ae2cad32ab5881ed40ef0d722812 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 21 Mar 2019 21:34:12 -0400 Subject: Expire status errors on input --- widgets/aerc.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'widgets/aerc.go') diff --git a/widgets/aerc.go b/widgets/aerc.go index bdf94bd3..92fc06ef 100644 --- a/widgets/aerc.go +++ b/widgets/aerc.go @@ -124,6 +124,7 @@ func (aerc *Aerc) Event(event tcell.Event) bool { switch event := event.(type) { case *tcell.EventKey: + aerc.statusline.Expire() aerc.pendingKeys = append(aerc.pendingKeys, config.KeyStroke{ Key: event.Key(), Rune: event.Rune(), @@ -231,8 +232,16 @@ func (aerc *Aerc) focus(item libui.Interactive) { aerc.focused.Focus(false) } aerc.focused = item + interactive, ok := aerc.tabs.Tabs[aerc.tabs.Selected].Content.(ui.Interactive) if item != nil { item.Focus(true) + if ok { + interactive.Focus(false) + } + } else { + if ok { + interactive.Focus(true) + } } } -- cgit