From: Jonas Fonseca Date: Tue, 29 May 2007 14:00:24 +0000 (+0200) Subject: Move space separator from get_key to formatting in open_help_view X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=520094b447952529317234c6f32b49bbf0ededff;p=tig.git Move space separator from get_key to formatting in open_help_view --- diff --git a/tig.c b/tig.c index 0b2b5c8..692a2b8 100644 --- 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);