summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 936ec29)
raw | patch | inline | side by side (parent: 936ec29)
author | Jonas Fonseca <fonseca@diku.dk> | |
Sun, 3 Oct 2010 23:59:17 +0000 (19:59 -0400) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Sun, 3 Oct 2010 23:59:17 +0000 (19:59 -0400) |
tig.c | patch | blob | history |
index 390923adb7121a767b4c68c79ba035d08f8b2370..f336a699142353766ae2f4c083544d6dbddeac49 100644 (file)
--- a/tig.c
+++ b/tig.c
};
int index;
- if (!map_enum(&index, obsolete, argv[0])) {
+ if (!map_enum(&index, obsolete, argv[0]))
return OPT_ERR_UNKNOWN_COLOR_NAME;
- }
info = &line_info[index];
}
if (!set_color(&info->fg, argv[1]) ||
- !set_color(&info->bg, argv[2])) {
+ !set_color(&info->bg, argv[2]))
return OPT_ERR_UNKNOWN_COLOR;
- }
info->attr = 0;
while (argc-- > 3) {
int attr;
- if (!set_attribute(&attr, argv[argc])) {
+ if (!set_attribute(&attr, argv[argc]))
return OPT_ERR_UNKNOWN_ATTRIBUTE;
- }
info->attr |= attr;
}