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.
This commit is contained in:
Benno Schulenberg 2019-05-13 11:07:21 +02:00
parent 0ebfd54e17
commit e26cbdd6cd

View File

@ -468,7 +468,7 @@ void help_init(void)
* plus one or two \n's. */
for (f = allfuncs; f != NULL; f = f->next)
if (f->menus & currmenu)
allocsize += (16 * MAXCHARLEN) + strlen(_(f->help)) + 2;
allocsize += (17 * MAXCHARLEN) + strlen(_(f->help)) + 2;
#ifndef NANO_TINY
/* 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) {
sprintf(ptr, "%s ", s->keystr);
/* 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 {
ptr += sprintf(ptr, "(%s)\t", s->keystr);
sprintf(ptr, "(%s) ", s->keystr);
ptr += (strstr(s->keystr, "\xE2") != NULL ? 12 : 10);
break;
}
}