summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-17 11:42:34 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-17 11:42:34 -0400
commit89ffd8653dfec30f66875bde71c997b511e2466c (patch)
treef83c433e6ffc08c2f99983d42ef0923cd6112820 /widgets
parent2ffbe7a6cd7882ce50163725104c8d9ea72102a8 (diff)
downloadaerc-89ffd8653dfec30f66875bde71c997b511e2466c.tar.gz
Implement ui.empty-message config option
Also removes some options that aren't going to be supported any time
soon.
Diffstat (limited to 'widgets')
-rw-r--r--widgets/msglist.go2
1 files changed, 1 insertions, 1 deletions
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)
 	}
ik K. Agaram <vc@akkartik.com> 2015-04-24 17:09:17 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2015-04-24 17:09:17 -0700 1166' href='/akkartik/mu/commit/cpp/.traces/reply?h=hlt&id=2fb94e3c4c4ade042fc1944f1bfa64609bff40b4'>2fb94e3c ^
decaddb4 ^



d61b4761 ^
6ca059ef ^
f6d47435 ^
72cccd08 ^
f6d47435 ^
72cccd08 ^
5df82e48 ^
57699011 ^
f6d47435 ^
72cccd08 ^
f6d47435 ^

5df82e48 ^

57699011 ^
f6d47435 ^
72cccd08 ^
5df82e48 ^

8dacba82 ^
57699011 ^
8dacba82 ^
57699011 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42