From 315bac4637537654b4711867911458c3a6974c7e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 27 May 2016 19:08:24 +0200 Subject: events/keyevents: zero cur_bb/cur_kb on each iteration previously, a button/key definition with an invalid action name would assign the specified key to the most recent valid action. E.g. "zoom_in 4\ninvalid 5" wuold assign button 5 to zoom_in. --- src/events.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/events.c') diff --git a/src/events.c b/src/events.c index c5032a1..23a14ba 100644 --- a/src/events.c +++ b/src/events.c @@ -128,6 +128,7 @@ void init_buttonbindings(void) while (fgets(line, sizeof(line), conf)) { *action = '\0'; *button = '\0'; + cur_bb = NULL; read = sscanf(line, "%31s %7s\n", (char *) &action, (char *) &button); -- cgit v1.2.3