Do not crash if set progress bar with no pane, from Dane Jensen.

This commit is contained in:
nicm
2026-05-13 08:25:05 +00:00
parent 18fced7e7f
commit 8f28f31b78

View File

@@ -2137,7 +2137,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 &&