aerc

Working clone of aerc-mail.org
git clone git://git.danielmoch.com/aerc.git
Log | Files | Refs | README | LICENSE

commit 8a42dfc87c61a393983ad6da895e74056f9b2fac
parent 60627c96f50a06483a57734c6b2a369ba84794ac
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu,  4 Apr 2019 14:25:51 -0400

Show (no messages) for empty folders

Diffstat:
Mwidgets/msglist.go | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/widgets/msglist.go b/widgets/msglist.go @@ -89,6 +89,12 @@ func (ml *MessageList) Draw(ctx *ui.Context) { row += 1 } + if len(ml.store.Uids) == 0 { + msg := "(no messages)" + ctx.Printf((ctx.Width()/2)-(len(msg)/2), 0, + tcell.StyleDefault, "%s", msg) + } + if len(needsHeaders) != 0 { ml.store.FetchHeaders(needsHeaders, nil) ml.spinner.Start()