aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-17 19:43:44 -0500
committerDrew DeVault <sir@cmpwn.com>2018-02-17 19:43:44 -0500
commit7f67162f43374188f619e571c6d614626a24127a (patch)
tree538387e5be60e7c9217f01b90c8349562c0e01bb
parent5b2e3a0ca0b549c569ff6c01549c2dc425b0ba40 (diff)
Cycle tabs for demoy goodness
-rw-r--r--cmd/aerc/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/aerc/main.go b/cmd/aerc/main.go
index 7a273b8..2296014 100644
--- a/cmd/aerc/main.go
+++ b/cmd/aerc/main.go
@@ -76,8 +76,10 @@ func main() {
defer _ui.Close()
go (func() {
- time.Sleep(1 * time.Second)
- tabs.Select(1)
+ for {
+ time.Sleep(1 * time.Second)
+ tabs.Select((tabs.Selected + 1) % 2)
+ }
})()
for !_ui.Exit {