nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 34f4ceb77e1956add894df260b39c5de217852f0
parent d0ad1e42d9fc6447c24619c9694a43f8c02bfc77
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 30 Jul 2020 10:12:24 +0200

help: list again the keystroke for toggling the help lines (M-X)

This fixes https://savannah.gnu.org/bugs/?58855.

Bug existed since version 5.0, commit d8249917.

Diffstat:
Msrc/help.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/help.c b/src/help.c @@ -302,7 +302,7 @@ void help_init(void) counter++; for (s = sclist; s != NULL; s = s->next) if (s->toggle && s->ordinal == counter) { - ptr += sprintf(ptr, "%s\t\t %s %s\n", (s->menus == MMAIN ? s->keystr : ""), + ptr += sprintf(ptr, "%s\t\t %s %s\n", (s->menus & MMAIN ? s->keystr : ""), _(flagtostr(s->toggle)), _("enable/disable")); if (s->toggle == NO_SYNTAX || s->toggle == TABS_TO_SPACES) ptr += sprintf(ptr, "\n");