From: Mehdi Abaakouk Date: Mon, 20 Feb 2017 09:05:39 +0000 (+0100) Subject: notmuch: Allow to use untransformed tag for color X-Git-Tag: neomutt-20170225~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F417%2Fhead;p=neomutt notmuch: Allow to use untransformed tag for color closes #417 --- diff --git a/menu.c b/menu.c index 3fd55fae5..67d9dd363 100644 --- a/menu.c +++ b/menu.c @@ -52,6 +52,9 @@ get_color (int index, unsigned char *s) case MT_COLOR_INDEX_TAG: for (color = ColorIndexTagList; color; color = color->next) { + if (strncmp((const char *)(s+1), color->pattern, + strlen(color->pattern)) == 0) + return color->pair; const char * transform = hash_find(TagTransforms, color->pattern); if (transform && (strncmp((const char *)(s+1), transform, strlen(transform)) == 0))