From e67548dc36fdb4454aded1c95bd35e2443191f94 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 6 Feb 2017 15:00:41 +0000 Subject: Cancel key table when switching session, unless the key is going to repeat. Reported by Amos Bird. --- cmd-attach-session.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd-attach-session.c') diff --git a/cmd-attach-session.c b/cmd-attach-session.c index d29c4dd1..e9c23df3 100644 --- a/cmd-attach-session.c +++ b/cmd-attach-session.c @@ -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); -- cgit v1.2.3