* src/files.c (write_lockfile): Don't bail out when the hostname is
overlong, but instead truncate it properly and continue. This fixes
Ubuntu bug #1509081 reported by Sam Reed.
+ * src/global.c (length_of_list), src/winio.c(get_mouseinput): Don't
+ check whether a function has a help line, since all of them have.
+ (And even if some didn't, they would still be valid functions.)
2015-11-02 Benno Schulenberg <bensberg@justemail.net>
* src/nano.h: Delete an unused type definition.
size_t i = 0;
for (f = allfuncs; f != NULL; f = f->next)
- if ((f->menus & menu) != 0
-#ifndef DISABLE_HELP
- && strlen(f->help) > 0
-#endif
- ) {
+ if ((f->menus & menu) != 0) {
i++;
}
return i;
for (f = allfuncs; f != NULL; f = f->next) {
if ((f->menus & currmenu) == 0)
continue;
-#ifndef DISABLE_HELP
- if (!f->help || strlen(f->help) == 0)
- continue;
-#endif
if (first_sc_for(currmenu, f->scfunc) == NULL)
continue;
/* Tick off an actually shown shortcut. */