commit 53fbcf77f29d5cae3298330402f94d832af27506
parent 4ede3b494f3767d841edd43f1fcf630803ee2a49
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Fri, 6 Nov 2015 20:25:05 +0000
Not checking whether a function has a help line; it's irrelevant.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5392 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
3 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -2,6 +2,9 @@
* 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.
diff --git a/src/global.c b/src/global.c
@@ -217,11 +217,7 @@ size_t length_of_list(int menu)
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;
diff --git a/src/winio.c b/src/winio.c
@@ -1684,10 +1684,6 @@ int get_mouseinput(int *mouse_x, int *mouse_y, bool allow_shortcuts)
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. */