Key needs to be initialized to zero now it has flags in it.

pull/871/merge
nicm 2017-04-21 19:33:07 +00:00
parent 3c876235cc
commit 2ad09ab5af
2 changed files with 3 additions and 1 deletions

View File

@ -100,7 +100,7 @@ key_bindings_add(const char *name, key_code key, int repeat,
free(bd);
}
bd = xmalloc(sizeof *bd);
bd = xcalloc(1, sizeof *bd);
bd->key = key;
RB_INSERT(key_bindings, &table->key_bindings, bd);

View File

@ -900,6 +900,8 @@ retry:
log_debug("key table %s (no pane)", table->name);
else
log_debug("key table %s (pane %%%u)", table->name, wp->id);
if (c->flags & CLIENT_REPEAT)
log_debug("currently repeating");
/* Try to see if there is a key binding in the current table. */
bd_find.key = key;