mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Drop the edit mode key tables and just use fixed key bindings for the
command prompt.
This commit is contained in:
@ -34,8 +34,8 @@ const struct cmd_entry cmd_unbind_key_entry = {
|
||||
.name = "unbind-key",
|
||||
.alias = "unbind",
|
||||
|
||||
.args = { "acnt:T:", 0, 1 },
|
||||
.usage = "[-acn] [-t mode-table] [-T key-table] key",
|
||||
.args = { "ant:T:", 0, 1 },
|
||||
.usage = "[-an] [-t mode-table] [-T key-table] key",
|
||||
|
||||
.flags = 0,
|
||||
.exec = cmd_unbind_key_exec
|
||||
@ -122,7 +122,6 @@ cmd_unbind_key_mode_table(struct cmd *self, struct cmd_q *cmdq, key_code key)
|
||||
}
|
||||
|
||||
mtmp.key = key;
|
||||
mtmp.mode = !!args_has(args, 'c');
|
||||
if ((mbind = RB_FIND(mode_key_tree, mtab->tree, &mtmp)) != NULL) {
|
||||
RB_REMOVE(mode_key_tree, mtab->tree, mbind);
|
||||
free(mbind);
|
||||
|
Reference in New Issue
Block a user