commit a85b6da60d5349828f10484b6d299f31fc80f935
parent 70d2167b4b739861a4b8b39cb70660efb1fb3900
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Wed, 26 Mar 2014 10:57:11 +0000
Printing also the last shortcut in the list.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4681 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,6 +1,7 @@
2014-03-26 Benno Schulenberg <bensberg@justemail.net>
* configure.ac - Word, tab, and comment tweaks.
* src/global.c - Some comment tweaks, and whitespace trimmings.
+ * src/global.c (print_sclist) - Also print last shortcut in list.
2014-03-26 Mike Frysinger <vapier@gentoo.org>.
* configure.ac - Clean up most of the --with/--enable flags:
diff --git a/src/global.c b/src/global.c
@@ -484,9 +484,9 @@ void print_sclist(void)
sc *s;
const subnfunc *f;
- for (s = sclist; s->next != NULL; s = s->next) {
+ for (s = sclist; s != NULL; s = s->next) {
f = sctofunc(s);
- if (f)
+ if (f)
fprintf(stderr, "Shortcut \"%s\", function: %s, menus %x\n", s->keystr, f->desc, f->menus);
else
fprintf(stderr, "Hmm, didnt find a func for \"%s\"\n", s->keystr);