Skip to content

Commit

Permalink
Align relative dates to the right
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas committed Apr 25, 2014
1 parent 8600999 commit 5460a6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,12 @@ draw_date(struct view *view, struct view_column *column, const struct time *time
{
enum date date = column->opt.date.show;
const char *text = mkdate(time, date);
enum align align = date == DATE_RELATIVE ? ALIGN_RIGHT : ALIGN_LEFT;

if (date == DATE_NO)
return FALSE;

return draw_field(view, LINE_DATE, text, column->width, ALIGN_LEFT, FALSE);
return draw_field(view, LINE_DATE, text, column->width, align, FALSE);
}

static bool
Expand Down

0 comments on commit 5460a6c

Please sign in to comment.