Fix crash when minimising pane.

This commit is contained in:
Michael Grant
2026-05-13 22:28:14 +01:00
parent 6b16e93f1b
commit 1ff3dafe4e
5 changed files with 54 additions and 53 deletions

View File

@@ -2197,7 +2197,7 @@ server_client_set_path(struct client *c)
struct session *s = c->session;
const char *path;
if (s->curw == NULL)
if (s->curw == NULL || s->curw->window->active == NULL)
return;
if (s->curw->window->active->base.path == NULL)
path = "";
@@ -2217,7 +2217,7 @@ server_client_set_progress_bar(struct client *c)
struct session *s = c->session;
struct progress_bar *pane_pb;
if (s->curw == NULL)
if (s->curw == NULL || s->curw->window->active == NULL)
return;
pane_pb = &s->curw->window->active->base.progress_bar;
if (pane_pb->state == c->progress_bar.state &&