From a85b6da60d5349828f10484b6d299f31fc80f935 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 26 Mar 2014 10:57:11 +0000 Subject: [PATCH] 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 --- ChangeLog | 1 + src/global.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 99b21c98..9b09d09b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2014-03-26 Benno Schulenberg * 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 . * configure.ac - Clean up most of the --with/--enable flags: diff --git a/src/global.c b/src/global.c index 9faf47df..ecb94146 100644 --- 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); -- 2.39.5