summaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/msglist.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go
index d8d419e..d3c82a5 100644
--- 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()