Code

Only show the command being loaded from for the pager view
authorJonas Fonseca <fonseca@diku.dk>
Mon, 20 Aug 2007 22:35:32 +0000 (00:35 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Tue, 21 Aug 2007 08:43:51 +0000 (10:43 +0200)
This feature was introduced in 035ba11f40c0a045989ed861e72327012af022b4.

tig.c

diff --git a/tig.c b/tig.c
index e57ec4d6ed4cd60a0d7dce7b7b93a7808b81564d..541a8df49e2daded8a1b286a03c9308cff66d6cb 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -1818,7 +1818,10 @@ begin_update(struct view *view)
                /* When running random commands, initially show the
                 * command in the title. However, it maybe later be
                 * overwritten if a commit line is selected. */
-               string_copy(view->ref, view->cmd);
+               if (view == VIEW(REQ_VIEW_PAGER))
+                       string_copy(view->ref, view->cmd);
+               else
+                       view->ref[0] = 0;
 
        } else if (view == VIEW(REQ_VIEW_TREE)) {
                const char *format = view->cmd_env ? view->cmd_env : view->cmd_fmt;