Cancel key table when switching session, unless the key is going to

repeat. Reported by Amos Bird.
This commit is contained in:
nicm
2017-02-06 15:00:41 +00:00
parent d150d9b384
commit e67548dc36
5 changed files with 15 additions and 4 deletions

View File

@ -277,6 +277,8 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item)
} else if (c->session != NULL)
c->last_session = c->session;
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);