summary refs log tree commit diff stats
path: root/widgets/aerc.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/aerc.go')
-rw-r--r--widgets/aerc.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index bdf94bd..92fc06e 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)
+		}
 	}
 }
 
artik K. Agaram <vc@akkartik.com> 2015-07-13 22:50:49 -0700 1780 - now we always reclaim local scopes' href='/akkartik/mu/commit/factorial.mu?h=hlt&id=77d5b5d658830bd24724f945e0d6ddf6a06adc0e'>77d5b5d6 ^
32241605 ^
b96af395 ^

9458918f ^
ce87c19e ^
1ead3562 ^
08b48a8d ^
c1d92c9d ^
192d59d3 ^

32241605 ^
b96af395 ^
08b48a8d ^
b96af395 ^


192d59d3 ^
b96af395 ^
bafc7192 ^
b96af395 ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33