Skip to content
Browse files

Merge pull request #81 from esc/fix/reading_git_colors_256

fix: reading git colors in rang 0 255
  • Loading branch information...
2 parents 7368b5b + 54e8c4d commit 7cdab0019beb781ec915038bac8bbc9c207a3e23 @jonas jonas committed Aug 18, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 tig.c
View
3 tig.c
@@ -1288,7 +1288,8 @@ set_color(int *color, const char *name)
return TRUE;
if (!prefixcmp(name, "color"))
return parse_int(color, name + 5, 0, 255) == OPT_OK;
- return FALSE;
+ /* Used when reading git colors. Git expects a plain int w/o prefix. */
+ return parse_int(color, name, 0, 255) == OPT_OK;
}
/* Wants: object fgcolor bgcolor [attribute] */

0 comments on commit 7cdab00

Please sign in to comment.
Something went wrong with that request. Please try again.