mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
Sync OpenBSD patchset 944:
Use key_bindings_remove for unbind-key -a to allow it to work from key bindings. From "miaout17" SF bug 3392063.
This commit is contained in:
parent
b9bbe1d81c
commit
abb4af7a14
@ -59,9 +59,7 @@ cmd_unbind_key_exec(struct cmd *self, unused struct cmd_ctx *ctx)
|
|||||||
if (args_has(args, 'a')) {
|
if (args_has(args, 'a')) {
|
||||||
while (!SPLAY_EMPTY(&key_bindings)) {
|
while (!SPLAY_EMPTY(&key_bindings)) {
|
||||||
bd = SPLAY_ROOT(&key_bindings);
|
bd = SPLAY_ROOT(&key_bindings);
|
||||||
SPLAY_REMOVE(key_bindings, &key_bindings, bd);
|
key_bindings_remove(bd->key);
|
||||||
cmd_list_free(bd->cmdlist);
|
|
||||||
xfree(bd);
|
|
||||||
}
|
}
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user