Code

Move space separator from get_key to formatting in open_help_view
authorJonas Fonseca <fonseca@diku.dk>
Tue, 29 May 2007 14:00:24 +0000 (16:00 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Tue, 29 May 2007 14:00:24 +0000 (16:00 +0200)
tig.c

diff --git a/tig.c b/tig.c
index 0b2b5c83112af2700cea8cdbb8906d47624a4a20..692a2b87f183ea66060bef4e00b4f31c07c8cf0c 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -870,7 +870,7 @@ get_key(enum request request)
        static char buf[BUFSIZ];
        static char key_char[] = "'X'";
        size_t pos = 0;
-       char *sep = "    ";
+       char *sep = "";
        int i;
 
        buf[pos] = 0;
@@ -2030,7 +2030,7 @@ static void open_help_view(struct view *view)
                }
 
                key = get_key(req_info[i].request);
-               if (!string_format(buf, "%-25s %s", key, req_info[i].help))
+               if (!string_format(buf, "    %-25s %s", key, req_info[i].help))
                        continue;
 
                add_line_text(view, buf, LINE_DEFAULT);