Code

Accept 'utf-8' for the line-graphics option as indicated in the docs
authorJonas Fonseca <fonseca@diku.dk>
Sun, 10 Apr 2011 16:19:10 +0000 (12:19 -0400)
committerJonas Fonseca <fonseca@diku.dk>
Sun, 10 Apr 2011 16:19:29 +0000 (12:19 -0400)
Reported by Bernhard Walle.

NEWS
tig.c

diff --git a/NEWS b/NEWS
index 02ec3ef6558a638fff6ee2974796d4407455f395..d4a3db20fdfff7d68b39252317bbca91a181bbf4 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,7 @@ Improvements:
 Bug fixes:
 
  - Expand %(directory) to . for the root directory. (GH-3)
 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
 --------
 
 tig-0.17
 --------
diff --git a/tig.c b/tig.c
index eec5b0abfcd7b3a274d67ec88b64b175db487dfb..51c84b8a936d713fbbd987764055c1f5dce9d7cd 100644 (file)
--- 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,
 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),
 };
 
 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_
 };
 
 #undef GRAPHIC_
 };