Code

Make keybinding reference more dynamic
authorJonas Fonseca <fonseca@diku.dk>
Tue, 29 May 2007 14:06:00 +0000 (16:06 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Tue, 29 May 2007 14:06:00 +0000 (16:06 +0200)
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

diff --git a/tig.c b/tig.c
index 692a2b87f183ea66060bef4e00b4f31c07c8cf0c..45e47b9da6f3a8666ad08f822551a4c884d8ae48 100644 (file)
--- 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 */