about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-06-07 10:08:09 -0400
committerDrew DeVault <sir@cmpwn.com>2019-06-07 10:08:09 -0400
commit150a271b360478e4769928cd94175b4f9acabe2b (patch)
tree5ec0bcf1c10a39f5a79469ff85e56ea0582115a0
parentb83e7c9fa6a0d187a0f20d98d522cff792053cdd (diff)
downloadaerc-150a271b360478e4769928cd94175b4f9acabe2b.tar.gz
Add binding to toggle headers
-rw-r--r--config/binds.conf1
-rw-r--r--widgets/account.go2
2 files changed, 2 insertions, 1 deletions
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))
 	}