Code

update_view_title: format load seconds as part of the state string
authorJonas Fonseca <fonseca@diku.dk>
Sat, 16 Sep 2006 00:22:34 +0000 (02:22 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Sat, 16 Sep 2006 00:23:15 +0000 (02:23 +0200)
tig.c

diff --git a/tig.c b/tig.c
index ef3fe0daba90278343cf406c9b3a0ca5cd6f804b..8a796fd25bebf140353037ec28871517025867fb 100644 (file)
--- 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])