mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Cancel key table when switching session, unless the key is going to
repeat. Reported by Amos Bird.
This commit is contained in:
@ -108,6 +108,8 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item)
|
||||
if (c->session != NULL && c->session != s)
|
||||
c->last_session = c->session;
|
||||
c->session = s;
|
||||
if (!item->repeat)
|
||||
server_client_set_key_table(c, NULL);
|
||||
status_timer_start(c);
|
||||
session_update_activity(s, NULL);
|
||||
gettimeofday(&s->last_attached_time, NULL);
|
||||
|
Reference in New Issue
Block a user