From 150a271b360478e4769928cd94175b4f9acabe2b Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 7 Jun 2019 10:08:09 -0400 Subject: [PATCH] Add binding to toggle headers --- config/binds.conf | 1 + widgets/account.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/binds.conf b/config/binds.conf index b192012..2c0476a 100644 --- a/config/binds.conf +++ b/config/binds.conf @@ -46,6 +46,7 @@ q = :close | = :pipe f = :forward D = :delete +H = :toggle-headers rr = :reply rq = :reply -q Rr = :reply -a diff --git a/widgets/account.go b/widgets/account.go index 0feac4a..1921dbd 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -48,7 +48,7 @@ func NewAccountView(conf *config.AercConfig, acct *config.AccountConfig, } dirlist := NewDirectoryList(acct, logger, worker) - if (conf.Ui.SidebarWidth > 0) { + if conf.Ui.SidebarWidth > 0 { grid.AddChild(ui.NewBordered(dirlist, ui.BORDER_RIGHT)) }