aboutsummaryrefslogtreecommitdiffstats
path: root/aerc.go
diff options
context:
space:
mode:
Diffstat (limited to 'aerc.go')
-rw-r--r--aerc.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/aerc.go b/aerc.go
index 3030ee99..3bdc90aa 100644
--- a/aerc.go
+++ b/aerc.go
@@ -15,8 +15,10 @@ import (
)
func main() {
- var logOut io.Writer
- var logger *log.Logger
+ var (
+ logOut io.Writer
+ logger *log.Logger
+ )
if !isatty.IsTerminal(os.Stdout.Fd()) {
logOut = os.Stdout
} else {
@@ -30,7 +32,7 @@ func main() {
panic(err)
}
- ui, err := libui.Initialize(conf, widgets.NewAerc(logger))
+ ui, err := libui.Initialize(conf, widgets.NewAerc(conf, logger))
if err != nil {
panic(err)
}