summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 14a2d3c)
raw | patch | inline | side by side (parent: 14a2d3c)
author | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 20 Aug 2007 22:35:32 +0000 (00:35 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 21 Aug 2007 08:43:51 +0000 (10:43 +0200) |
tig.c | patch | blob | history |
index e57ec4d6ed4cd60a0d7dce7b7b93a7808b81564d..541a8df49e2daded8a1b286a03c9308cff66d6cb 100644 (file)
--- a/tig.c
+++ b/tig.c
/* 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;