Implement ui.empty-message config option

Also removes some options that aren't going to be supported any time
soon.
This commit is contained in:
Drew DeVault 2019-05-17 11:42:34 -04:00
parent 2ffbe7a6cd
commit 89ffd8653d
3 changed files with 1 additions and 18 deletions
widgets

View file

@ -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)
}