diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-08-23 16:06:46 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-08-23 16:06:46 +0100 |
commit | 95a374d7d20dde938563a9f92c8ffc1e25bd4050 (patch) | |
tree | 596cfdc4aa9c9d7a0f04cd1c8b541e86ede90eef /key-bindings.c | |
parent | 1dec1ca146882572e261f2f2f55d9060c06a0212 (diff) | |
parent | 210e71edf36198e3f22525e7f548a71a5681d25c (diff) | |
download | rtmux-95a374d7d20dde938563a9f92c8ffc1e25bd4050.tar.gz rtmux-95a374d7d20dde938563a9f92c8ffc1e25bd4050.tar.bz2 rtmux-95a374d7d20dde938563a9f92c8ffc1e25bd4050.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'key-bindings.c')
-rw-r--r-- | key-bindings.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/key-bindings.c b/key-bindings.c index c0a959e2..e3b21d61 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -187,6 +187,7 @@ key_bindings_add(const char *name, key_code key, const char *note, int repeat, { struct key_table *table; struct key_binding *bd; + char *s; table = key_bindings_get_table(name, 1); @@ -216,8 +217,10 @@ key_bindings_add(const char *name, key_code key, const char *note, int repeat, bd->flags |= KEY_BINDING_REPEAT; bd->cmdlist = cmdlist; + s = cmd_list_print(bd->cmdlist, 0); log_debug("%s: %#llx %s = %s", __func__, bd->key, - key_string_lookup_key(bd->key, 1), cmd_list_print(bd->cmdlist, 0)); + key_string_lookup_key(bd->key, 1), s); + free(s); } void |