diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-02-17 19:43:44 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-02-17 19:43:44 -0500 |
commit | 7f67162f43374188f619e571c6d614626a24127a (patch) | |
tree | 538387e5be60e7c9217f01b90c8349562c0e01bb /cmd | |
parent | 5b2e3a0ca0b549c569ff6c01549c2dc425b0ba40 (diff) | |
download | aerc-7f67162f43374188f619e571c6d614626a24127a.zip |
Cycle tabs for demoy goodness
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/aerc/main.go | 6 |
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 { |