-/* $OpenBSD: resize.c,v 1.47 2021/08/27 17:15:57 nicm Exp $ */
+/* $OpenBSD: resize.c,v 1.48 2021/12/06 10:08:42 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
* is not the current window - this is used for aggressive-resize.
* Otherwise skip any session that doesn't contain the window.
*/
+ if (loop->session->curw == NULL)
+ return (1);
if (current)
return (loop->session->curw->window != w);
return (session_has(loop->session, w) == 0);
-/* $OpenBSD: tty.c,v 1.412 2021/11/29 11:05:28 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.413 2021/12/06 10:08:42 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
struct client *c;
TAILQ_FOREACH(c, &clients, entry) {
- if (c->session != NULL && c->session->curw->window == w)
+ if (c->session != NULL &&
+ c->session->curw != NULL &&
+ c->session->curw->window == w)
tty_update_client_offset(c);
}
}