Skip to content

Commit

Permalink
notmuch: Allow to use untransformed tag for color
Browse files Browse the repository at this point in the history
closes #417
  • Loading branch information
sileht authored and flatcap committed Feb 20, 2017
1 parent e95052d commit f698462
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions menu.c
Expand Up @@ -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))
Expand Down

0 comments on commit f698462

Please sign in to comment.