summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 312eb34)
raw | patch | inline | side by side (parent: 312eb34)
author | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 28 Jan 2009 18:28:03 +0000 (19:28 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 28 Jan 2009 18:28:03 +0000 (19:28 +0100) |
tig.c | patch | blob | history |
index 095e9c6e92e11dbd41c86e73b5569afdb914cdb4..32f5c7c21499196ff4371a9b83b091536a994cb5 100644 (file)
--- a/tig.c
+++ b/tig.c
static bool
help_open(struct view *view)
{
- int lines = ARRAY_SIZE(req_info) + 2;
int i;
if (view->lines > 0)
return TRUE;
- for (i = 0; i < ARRAY_SIZE(req_info); i++)
- if (!req_info[i].request)
- lines++;
-
- lines += run_requests + 1;
-
- view->line = calloc(lines, sizeof(*view->line));
- if (!view->line)
- return FALSE;
-
add_line_text(view, "Quick reference for tig keybindings:", LINE_DEFAULT);
for (i = 0; i < ARRAY_SIZE(req_info); i++) {