nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 73a07215cc705ddbfdda5f324de43d66bd94e5bd
parent bf091be778fa3929d1b8120ee44cc8d6f7d14054
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Mon, 18 Jul 2016 12:44:34 +0200

debug: remove duplicate information

Diffstat:
Msrc/winio.c | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -1637,21 +1637,22 @@ const sc *get_shortcut(int *kbinput) sc *s; #ifdef DEBUG - fprintf(stderr, "get_shortcut(): kbinput = %d, meta_key = %s -- ", *kbinput, meta_key ? "TRUE" : "FALSE"); + fprintf(stderr, "get_shortcut(): kbinput = %d, meta_key = %s -- ", + *kbinput, meta_key ? "TRUE" : "FALSE"); #endif for (s = sclist; s != NULL; s = s->next) { if ((s->menus & currmenu) && *kbinput == s->seq && meta_key == (s->type == META)) { #ifdef DEBUG - fprintf (stderr, "matched seq \"%s\", and btw meta was %d (menu is %x from %x)\n", - s->keystr, meta_key, currmenu, s->menus); + fprintf (stderr, "matched seq '%s' (menu is %x from %x)\n", + s->keystr, currmenu, s->menus); #endif return s; } } #ifdef DEBUG - fprintf (stderr, "matched nothing, btw meta was %d\n", meta_key); + fprintf (stderr, "matched nothing\n"); #endif return NULL;