From: Jonas Fonseca Date: Mon, 20 Aug 2007 22:35:32 +0000 (+0200) Subject: Only show the command being loaded from for the pager view X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=809a9f4877cd60312dfb5fb314dd250d74a386fc;p=tig.git Only show the command being loaded from for the pager view This feature was introduced in 035ba11f40c0a045989ed861e72327012af022b4. --- diff --git a/tig.c b/tig.c index e57ec4d..541a8df 100644 --- 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;