* src/global.c (shortcut_init): List function key after meta key.
* src/help.c (help_init): Show just two shortcuts per function --
only three functions showed three, but who has an F13, F14, F15?
+ * src/help.c (help_init): Split the toggles into three groups,
+ and do not show toggle keys that have been rebound.
2014-04-21 Benno Schulenberg <bensberg@justemail.net>
* doc/syntax/nanorc.nanorc: There is no F0 key.
#ifndef NANO_TINY
/* And the toggles... */
if (currmenu == MMAIN)
- for (s = sclist; s != NULL; s = s->next)
+ for (s = sclist; s != NULL; s = s->next) {
if (s->scfunc == do_toggle_void)
- ptr += sprintf(ptr, "(%s)\t\t%s %s\n",
- s->keystr, _(flagtostr(s->toggle)), _("enable/disable"));
+ ptr += sprintf(ptr, "%s\t\t%s %s\n", (s->menu == MMAIN ? s->keystr : ""),
+ _(flagtostr(s->toggle)), _("enable/disable"));
+ if (s->toggle == NO_COLOR_SYNTAX || s->toggle == TABS_TO_SPACES)
+ ptr += sprintf(ptr, "\n");
+ }
#ifndef DISABLE_NANORC
if (old_whitespace)