diff options
Diffstat (limited to 'widgets/msglist.go')
-rw-r--r-- | widgets/msglist.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go index d8d419e9..d3c82a5f 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() |