From 7f67162f43374188f619e571c6d614626a24127a Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 17 Feb 2018 19:43:44 -0500 Subject: Cycle tabs for demoy goodness --- cmd/aerc/main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cmd') 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 { -- cgit 1.4.1-2-gfad0