From 34f4ceb77e1956add894df260b39c5de217852f0 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 30 Jul 2020 10:12:24 +0200 Subject: [PATCH] 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. --- src/help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/help.c b/src/help.c index c8419898..e57c82bd 100644 --- 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");