aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--key-bindings.c2
-rw-r--r--server-client.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/key-bindings.c b/key-bindings.c
index ae7afb71..60dbe544 100644
--- a/key-bindings.c
+++ b/key-bindings.c
@@ -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);
diff --git a/server-client.c b/server-client.c
index 29ee4caa..63f9e5bf 100644
--- a/server-client.c
+++ b/server-client.c
@@ -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;