From c8af48119c23e9cc90bbc02b84cf6dca7400cdfc Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sun, 10 Apr 2011 12:19:10 -0400 Subject: [PATCH] Accept 'utf-8' for the line-graphics option as indicated in the docs Reported by Bernhard Walle. --- NEWS | 1 + tig.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 02ec3ef..d4a3db2 100644 --- a/NEWS +++ b/NEWS @@ -19,6 +19,7 @@ Improvements: Bug fixes: - Expand %(directory) to . for the root directory. (GH-3) + - Accept 'utf-8' for the line-graphics option as indicated in the docs. tig-0.17 -------- diff --git a/tig.c b/tig.c index eec5b0a..51c84b8 100644 --- a/tig.c +++ b/tig.c @@ -64,14 +64,14 @@ static bool prompt_menu(const char *prompt, const struct menu_item *items, int * enum graphic { GRAPHIC_ASCII = 0, GRAPHIC_DEFAULT, - GRAPHIC_UTF8 + GRAPHIC_UTF_8 }; static const struct enum_map graphic_map[] = { #define GRAPHIC_(name) ENUM_MAP(#name, GRAPHIC_##name) GRAPHIC_(ASCII), GRAPHIC_(DEFAULT), - GRAPHIC_(UTF8) + GRAPHIC_(UTF_8) #undef GRAPHIC_ }; -- 2.30.2