From: Jonas Fonseca Date: Thu, 14 Apr 2011 00:36:19 +0000 (-0400) Subject: Use mkauthor in grep functions X-Git-Url: https://git.tokkee.org/?p=tig.git;a=commitdiff_plain;h=b2ea386030e3bccd197c42e335d811ed2cbaf2fd Use mkauthor in grep functions --- diff --git a/tig.c b/tig.c index 2049789..c60a6af 100644 --- a/tig.c +++ b/tig.c @@ -3978,7 +3978,7 @@ tree_grep(struct view *view, struct line *line) struct tree_entry *entry = line->data; const char *text[] = { entry->name, - opt_author ? entry->author : "", + mkauthor(entry->author, opt_author_cols, opt_author), mkdate(&entry->time, opt_date), NULL }; @@ -4693,7 +4693,7 @@ branch_grep(struct view *view, struct line *line) struct branch *branch = line->data; const char *text[] = { branch->ref->name, - branch->author, + mkauthor(branch->author, opt_author_cols, opt_author), NULL }; @@ -5947,7 +5947,7 @@ main_grep(struct view *view, struct line *line) struct commit *commit = line->data; const char *text[] = { commit->title, - opt_author ? commit->author : "", + mkauthor(commit->author, opt_author_cols, opt_author), mkdate(&commit->time, opt_date), NULL };