Skip to content

Instantly share code, notes, and snippets.

@afh
Created July 2, 2011 14:30
Show Gist options
  • Select an option

  • Save afh/1060491 to your computer and use it in GitHub Desktop.

Select an option

Save afh/1060491 to your computer and use it in GitHub Desktop.
mutt 1.5.21 patches
diff --git a/menu.c b/menu.c
index ff830f3..e14caf7 100644
--- a/menu.c
+++ b/menu.c
@@ -112,10 +112,20 @@ static void print_enriched_string (int attr, unsigned char *s, int do_color)
addch (' ');
break;
case M_TREE_RARROW:
- addch ('>');
+ if (option (OPTASCIICHARS))
+ addch ('>');
+ else if (Charset_is_utf8)
+ addstr ("\342\226\272"); /* WACS_RARROW */
+ else
+ addch (ACS_RARROW);
break;
case M_TREE_STAR:
- addch ('*'); /* fake thread indicator */
+ if (option (OPTASCIICHARS))
+ addch ('*'); /* fake thread indicator */
+ else if (Charset_is_utf8)
+ addstr ("\342\210\227"); /* WACS_BULLET */
+ else
+ addch (ACS_BULLET);
break;
case M_TREE_HIDDEN:
addch ('&');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment