Change send-keys -K to insert keys in the right place in the queue, like

we already do for key bindings. GitHub issue 3476.
This commit is contained in:
nicm
2026-06-11 19:13:34 +00:00
parent fa6d33f742
commit b6be437bab
3 changed files with 51 additions and 8 deletions

4
tmux.h
View File

@@ -1585,6 +1585,8 @@ struct mouse_event {
/* Key event. */
struct key_event {
struct client *client;
key_code key;
struct mouse_event m;
@@ -3036,6 +3038,8 @@ void server_client_set_key_table(struct client *, const char *);
const char *server_client_get_key_table(struct client *);
int server_client_check_nested(struct client *);
int server_client_handle_key(struct client *, struct key_event *);
int server_client_handle_key_after(struct client *, struct key_event *,
struct cmdq_item *, struct cmdq_item **);
struct client *server_client_create(int);
int server_client_open(struct client *, char **);
void server_client_unref(struct client *);