summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 201f10e)
raw | patch | inline | side by side (parent: 201f10e)
author | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 27 Sep 2007 02:12:55 +0000 (04:12 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 27 Sep 2007 18:17:28 +0000 (20:17 +0200) |
tig.c | patch | blob | history |
index 7c4afae8cdd4632369076e4e52a78775ce8f9beb..3a9bc2d0b83e185165917ee2425f6e2caca1a96f 100644 (file)
--- a/tig.c
+++ b/tig.c
for (i = 0; i < ARRAY_SIZE(req_info); i++) {
char *key;
+ if (req_info[i].request == REQ_NONE)
+ continue;
+
if (!req_info[i].request) {
add_line_text(view, "", LINE_DEFAULT);
add_line_text(view, req_info[i].help, LINE_DEFAULT);
}
key = get_key(req_info[i].request);
+ if (!*key)
+ key = "(no key defined)";
+
if (!string_format(buf, " %-25s %s", key, req_info[i].help))
continue;