mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Key needs to be initialized to zero now it has flags in it.
This commit is contained in:
parent
3c876235cc
commit
2ad09ab5af
@ -100,7 +100,7 @@ key_bindings_add(const char *name, key_code key, int repeat,
|
|||||||
free(bd);
|
free(bd);
|
||||||
}
|
}
|
||||||
|
|
||||||
bd = xmalloc(sizeof *bd);
|
bd = xcalloc(1, sizeof *bd);
|
||||||
bd->key = key;
|
bd->key = key;
|
||||||
RB_INSERT(key_bindings, &table->key_bindings, bd);
|
RB_INSERT(key_bindings, &table->key_bindings, bd);
|
||||||
|
|
||||||
|
@ -900,6 +900,8 @@ retry:
|
|||||||
log_debug("key table %s (no pane)", table->name);
|
log_debug("key table %s (no pane)", table->name);
|
||||||
else
|
else
|
||||||
log_debug("key table %s (pane %%%u)", table->name, wp->id);
|
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. */
|
/* Try to see if there is a key binding in the current table. */
|
||||||
bd_find.key = key;
|
bd_find.key = key;
|
||||||
|
Loading…
Reference in New Issue
Block a user