From: Jonas Fonseca Date: Sat, 16 Sep 2006 00:22:34 +0000 (+0200) Subject: update_view_title: format load seconds as part of the state string X-Git-Tag: tig-0.5~15 X-Git-Url: https://git.distorted.org.uk/~mdw/tig/commitdiff_plain/5becf24488b3a0a7b44518f53a8b3e577614a64c update_view_title: format load seconds as part of the state string --- diff --git a/tig.c b/tig.c index ef3fe0d..8a796fd 100644 --- a/tig.c +++ b/tig.c @@ -1335,14 +1335,14 @@ update_view_title(struct view *view) view->lineno + 1, view->lines, lines); - } - if (view->pipe) { - time_t secs = time(NULL) - view->start_time; + if (view->pipe) { + time_t secs = time(NULL) - view->start_time; - /* Three git seconds are a long time ... */ - if (secs > 2) - string_format_from(buf, &bufpos, " %lds", secs); + /* Three git seconds are a long time ... */ + if (secs > 2) + string_format_from(buf, &bufpos, " %lds", secs); + } } if (view == display[current_view])