From 2ad09ab5af530ceb5fbbbe53ea99a73ef9ddbe49 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 21 Apr 2017 19:33:07 +0000 Subject: [PATCH] Key needs to be initialized to zero now it has flags in it. --- key-bindings.c | 2 +- server-client.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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;