mirror of
https://github.com/tmux/tmux.git
synced 2026-03-06 07:45:35 +00:00
Check window is not NULL, from Chema Gonzalez in GitHub issue 4908.
This commit is contained in:
@@ -97,7 +97,9 @@ server_redraw_window(struct window *w)
|
|||||||
struct client *c;
|
struct client *c;
|
||||||
|
|
||||||
TAILQ_FOREACH(c, &clients, entry) {
|
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)
|
||||||
server_redraw_client(c);
|
server_redraw_client(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -108,7 +110,9 @@ server_redraw_window_borders(struct window *w)
|
|||||||
struct client *c;
|
struct client *c;
|
||||||
|
|
||||||
TAILQ_FOREACH(c, &clients, entry) {
|
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)
|
||||||
c->flags |= CLIENT_REDRAWBORDERS;
|
c->flags |= CLIENT_REDRAWBORDERS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user