mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Make send-keys without any arguments send the key it is bound to (if
any). GitHub issue 2904.
This commit is contained in:
parent
9b1fdb291e
commit
9f6164a05c
@ -202,6 +202,12 @@ cmd_send_keys_exec(struct cmd *self, struct cmdq_item *item)
|
||||
wp->flags |= (PANE_STYLECHANGED|PANE_REDRAW);
|
||||
}
|
||||
|
||||
if (count == 0) {
|
||||
for (; np != 0; np--)
|
||||
cmd_send_keys_inject_key(item, NULL, event->key);
|
||||
return (CMD_RETURN_NORMAL);
|
||||
}
|
||||
|
||||
for (; np != 0; np--) {
|
||||
for (i = 0; i < count; i++) {
|
||||
after = cmd_send_keys_inject_string(item, after, args,
|
||||
|
Loading…
Reference in New Issue
Block a user