From: Jonas Fonseca Date: Tue, 29 May 2007 14:06:00 +0000 (+0200) Subject: Make keybinding reference more dynamic X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=550cd4b501c0f8c95caeb9f6195b48db1783495b;p=tig.git Make keybinding reference more dynamic It doesn't honor any key map info, however, hardcoding key information seems wrong when get_key already exists. Used for the notice when blob view is requested and no blob ID has yet been assigned to ref_blob. --- diff --git a/tig.c b/tig.c index 692a2b8..45e47b9 100644 --- a/tig.c +++ b/tig.c @@ -2148,7 +2148,8 @@ view_driver(struct view *view, enum request request) case REQ_VIEW_BLOB: if (!ref_blob[0]) { - report("No file chosen, press 't' to open tree view"); + report("No file chosen, press %s to open tree view", + get_key(REQ_VIEW_TREE)); break; } /* Fall-through */