mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28: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);
|
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 (; np != 0; np--) {
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
after = cmd_send_keys_inject_string(item, after, args,
|
after = cmd_send_keys_inject_string(item, after, args,
|
||||||
|
1
tmux.1
1
tmux.1
@ -3123,6 +3123,7 @@ or
|
|||||||
to send; if the string is not recognised as a key, it is sent as a series of
|
to send; if the string is not recognised as a key, it is sent as a series of
|
||||||
characters.
|
characters.
|
||||||
All arguments are sent sequentially from first to last.
|
All arguments are sent sequentially from first to last.
|
||||||
|
If no keys are given and the command is bound to a key, then that key is used.
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
.Fl l
|
.Fl l
|
||||||
|
Loading…
Reference in New Issue
Block a user