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
master
Benno Schulenberg 2014-03-26 10:57:11 +00:00
parent 70d2167b4b
commit a85b6da60d
2 changed files with 3 additions and 2 deletions

View File

@ -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:

View File

@ -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);