summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ec00227)
raw | patch | inline | side by side (parent: ec00227)
author | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 14 Apr 2011 00:35:40 +0000 (20:35 -0400) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 14 Apr 2011 00:35:40 +0000 (20:35 -0400) |
tig.c | patch | blob | history |
index dd9437f5f39f29d3da373c80e9df443571d68adc..2049789b5fe020a599540f872dcb1becd3969ff5 100644 (file)
--- a/tig.c
+++ b/tig.c
bool trim = author_trim(cols);
bool abbreviate = author == AUTHOR_ABBREVIATED || !trim;
- if (!author)
+ if (author == AUTHOR_NO)
return "";
if (abbreviate && text)
return get_author_initials(text);
bool trim = author_trim(opt_author_cols);
const char *text = mkauthor(author, opt_author_cols, opt_author);
+ if (opt_author == AUTHOR_NO)
+ return FALSE;
+
return draw_field(view, LINE_AUTHOR, text, opt_author_cols, trim);
}