help: make the column for the first keystroke a little wider
To make room for the "M-Right" that is coming in the next commit -- seven characters are needed instead of six.master
parent
0ebfd54e17
commit
e26cbdd6cd
|
@ -468,7 +468,7 @@ void help_init(void)
|
||||||
* plus one or two \n's. */
|
* plus one or two \n's. */
|
||||||
for (f = allfuncs; f != NULL; f = f->next)
|
for (f = allfuncs; f != NULL; f = f->next)
|
||||||
if (f->menus & currmenu)
|
if (f->menus & currmenu)
|
||||||
allocsize += (16 * MAXCHARLEN) + strlen(_(f->help)) + 2;
|
allocsize += (17 * MAXCHARLEN) + strlen(_(f->help)) + 2;
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
/* If we're on the main list, we also count the toggle help text.
|
/* If we're on the main list, we also count the toggle help text.
|
||||||
|
@ -513,9 +513,10 @@ void help_init(void)
|
||||||
if (++tally == 1) {
|
if (++tally == 1) {
|
||||||
sprintf(ptr, "%s ", s->keystr);
|
sprintf(ptr, "%s ", s->keystr);
|
||||||
/* Unicode arrows take three bytes instead of one. */
|
/* Unicode arrows take three bytes instead of one. */
|
||||||
ptr += (strstr(s->keystr, "\xE2") != NULL ? 8 : 6);
|
ptr += (strstr(s->keystr, "\xE2") != NULL ? 9 : 7);
|
||||||
} else {
|
} else {
|
||||||
ptr += sprintf(ptr, "(%s)\t", s->keystr);
|
sprintf(ptr, "(%s) ", s->keystr);
|
||||||
|
ptr += (strstr(s->keystr, "\xE2") != NULL ? 12 : 10);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue