summary refs log tree commit diff
path: root/ui.c
diff options
context:
space:
mode:
authorC. McEnroe2020-02-11 17:43:36 -0500
committerC. McEnroe2020-02-11 17:43:36 -0500
commit277186329921ba34630b7a2492e1792133a02c67 (patch)
treebf4942e5bb472715c57dbbd6d7bb8639da1f2bb1 /ui.c
parentaf87b4e68d14ff5a3155c1f9c2ce1fa7d536c278 (diff)
Define ColorCap instead of hardcoding 100
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.c b/ui.c
index 34b6f7d..83373d9 100644
--- a/ui.c
+++ b/ui.c
@@ -314,7 +314,7 @@ struct Style {
 };
 static const struct Style Reset = { A_NORMAL, Default, Default };
 
-static const short Colors[100] = {
+static const short Colors[ColorCap] = {
 	[Default]    = -1,
 	[White]      = 8 + COLOR_WHITE,
 	[Black]      = 0 + COLOR_BLACK,