From 150a271b360478e4769928cd94175b4f9acabe2b Mon Sep 17 00:00:00 2001
From: Drew DeVault <sir@cmpwn.com>
Date: Fri, 7 Jun 2019 10:08:09 -0400
Subject: 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<Enter>
 | = :pipe<space>
 f = :forward<Enter>
 D = :delete<Enter>
+H = :toggle-headers<Enter>
 rr = :reply<Enter>
 rq = :reply -q<Enter>
 Rr = :reply -a<Enter>
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))
 	}
 
-- 
cgit 1.4.1-2-gfad0