Fix switch-client -l, from Jean-Marc Eurin in GitHub issue 1343.

This commit is contained in:
nicm 2018-05-15 14:58:09 +00:00
parent 80994a8de1
commit e3b034fac7

View File

@ -100,6 +100,7 @@ cmd_attach_session(struct cmdq_item *item, const char *tflag, int dflag,
s->cwd = format_single(item, cflag, c, s, wl, wp);
}
c->last_session = c->session;
if (c->session != NULL) {
if (dflag) {
TAILQ_FOREACH(c_loop, &clients, entry) {