mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
Allow send-keys without a client again, reported by Stefan Hagen.
This commit is contained in:
parent
7cb48fc40b
commit
4d79d463ef
@ -39,7 +39,7 @@ const struct cmd_entry cmd_send_keys_entry = {
|
||||
|
||||
.target = { 't', CMD_FIND_PANE, 0 },
|
||||
|
||||
.flags = CMD_AFTERHOOK|CMD_CLIENT_CFLAG,
|
||||
.flags = CMD_AFTERHOOK|CMD_CLIENT_CFLAG|CMD_CLIENT_CANFAIL,
|
||||
.exec = cmd_send_keys_exec
|
||||
};
|
||||
|
||||
@ -71,6 +71,8 @@ cmd_send_keys_inject_key(struct cmdq_item *item, struct cmdq_item *after,
|
||||
struct key_event *event;
|
||||
|
||||
if (args_has(args, 'K')) {
|
||||
if (tc == NULL)
|
||||
return (item);
|
||||
event = xmalloc(sizeof *event);
|
||||
event->key = key;
|
||||
memset(&event->m, 0, sizeof event->m);
|
||||
|
Loading…
Reference in New Issue
Block a user