From 89ffd8653dfec30f66875bde71c997b511e2466c Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 17 May 2019 11:42:34 -0400 Subject: Implement ui.empty-message config option Also removes some options that aren't going to be supported any time soon. --- widgets/msglist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets') diff --git a/widgets/msglist.go b/widgets/msglist.go index eeadec7..944bad8 100644 --- a/widgets/msglist.go +++ b/widgets/msglist.go @@ -89,7 +89,7 @@ func (ml *MessageList) Draw(ctx *ui.Context) { } if len(store.Uids) == 0 { - msg := "(no messages)" + msg := ml.conf.Ui.EmptyMessage ctx.Printf((ctx.Width()/2)-(len(msg)/2), 0, tcell.StyleDefault, "%s", msg) } -- cgit v1.2.3