From b2ea386030e3bccd197c42e335d811ed2cbaf2fd Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Wed, 13 Apr 2011 20:36:19 -0400 Subject: [PATCH] Use mkauthor in grep functions --- tig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }; -- 2.30.2