From 550cd4b501c0f8c95caeb9f6195b48db1783495b Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 29 May 2007 16:06:00 +0200 Subject: [PATCH] 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. --- tig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.30.2