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:
@ -98,6 +98,8 @@ cmd_attach_session(struct cmdq_item *item, int dflag, int rflag,
|
||||
environ_update(s->options, c->environ, s->environ);
|
||||
|
||||
c->session = s;
|
||||
if (!item->repeat)
|
||||
server_client_set_key_table(c, NULL);
|
||||
status_timer_start(c);
|
||||
notify_client("client-session-changed", c);
|
||||
session_update_activity(s, NULL);
|
||||
|
Reference in New Issue
Block a user