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:
parent
2ffbe7a6cd
commit
89ffd8653d
3 changed files with 1 additions and 18 deletions
widgets
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue