sort colour fields
authorRichard Russon <rich@flatcap.org>
Tue, 27 Mar 2018 21:26:47 +0000 (22:26 +0100)
committerRichard Russon <rich@flatcap.org>
Wed, 28 Mar 2018 02:18:08 +0000 (03:18 +0100)
color.c

diff --git a/color.c b/color.c
index 5f81300e410a1d34d419f0f539b0a11bbf34b53a..71a7b57477aeefab252b9db8b6da0dd678c5f4fb 100644 (file)
--- a/color.c
+++ b/color.c
@@ -92,26 +92,14 @@ static const struct Mapping Colors[] = {
 #endif /* HAVE_COLOR */
 
 static const struct Mapping Fields[] = {
-  { "hdrdefault", MT_COLOR_HDEFAULT },
-  { "quoted", MT_COLOR_QUOTED },
-  { "signature", MT_COLOR_SIGNATURE },
-  { "indicator", MT_COLOR_INDICATOR },
-  { "status", MT_COLOR_STATUS },
-  { "tree", MT_COLOR_TREE },
-  { "error", MT_COLOR_ERROR },
-  { "normal", MT_COLOR_NORMAL },
-  { "tilde", MT_COLOR_TILDE },
-  { "markers", MT_COLOR_MARKERS },
-  { "header", MT_COLOR_HEADER },
-  { "body", MT_COLOR_BODY },
-  { "message", MT_COLOR_MESSAGE },
   { "attachment", MT_COLOR_ATTACHMENT },
   { "attach_headers", MT_COLOR_ATTACH_HEADERS },
-  { "search", MT_COLOR_SEARCH },
+  { "body", MT_COLOR_BODY },
   { "bold", MT_COLOR_BOLD },
-  { "underline", MT_COLOR_UNDERLINE },
+  { "error", MT_COLOR_ERROR },
+  { "hdrdefault", MT_COLOR_HDEFAULT },
+  { "header", MT_COLOR_HEADER },
   { "index", MT_COLOR_INDEX },
-  { "progress", MT_COLOR_PROGRESS },
   { "index_author", MT_COLOR_INDEX_AUTHOR },
   { "index_collapsed", MT_COLOR_INDEX_COLLAPSED },
   { "index_date", MT_COLOR_INDEX_DATE },
@@ -122,7 +110,14 @@ static const struct Mapping Fields[] = {
   { "index_subject", MT_COLOR_INDEX_SUBJECT },
   { "index_tag", MT_COLOR_INDEX_TAG },
   { "index_tags", MT_COLOR_INDEX_TAGS },
+  { "indicator", MT_COLOR_INDICATOR },
+  { "markers", MT_COLOR_MARKERS },
+  { "message", MT_COLOR_MESSAGE },
+  { "normal", MT_COLOR_NORMAL },
+  { "progress", MT_COLOR_PROGRESS },
   { "prompt", MT_COLOR_PROMPT },
+  { "quoted", MT_COLOR_QUOTED },
+  { "search", MT_COLOR_SEARCH },
 #ifdef USE_SIDEBAR
   { "sidebar_divider", MT_COLOR_DIVIDER },
   { "sidebar_flagged", MT_COLOR_FLAGGED },
@@ -132,6 +127,11 @@ static const struct Mapping Fields[] = {
   { "sidebar_ordinary", MT_COLOR_ORDINARY },
   { "sidebar_spoolfile", MT_COLOR_SB_SPOOLFILE },
 #endif
+  { "signature", MT_COLOR_SIGNATURE },
+  { "status", MT_COLOR_STATUS },
+  { "tilde", MT_COLOR_TILDE },
+  { "tree", MT_COLOR_TREE },
+  { "underline", MT_COLOR_UNDERLINE },
   { NULL, 0 },
 };