mirror of
https://github.com/tmux/tmux.git
synced 2026-05-30 14:16:18 +00:00
Do not crash if set progress bar with no pane, from Dane Jensen.
This commit is contained in:
@@ -2137,7 +2137,7 @@ server_client_set_progress_bar(struct client *c)
|
|||||||
struct session *s = c->session;
|
struct session *s = c->session;
|
||||||
struct progress_bar *pane_pb;
|
struct progress_bar *pane_pb;
|
||||||
|
|
||||||
if (s->curw == NULL)
|
if (s->curw == NULL || s->curw->window->active == NULL)
|
||||||
return;
|
return;
|
||||||
pane_pb = &s->curw->window->active->base.progress_bar;
|
pane_pb = &s->curw->window->active->base.progress_bar;
|
||||||
if (pane_pb->state == c->progress_bar.state &&
|
if (pane_pb->state == c->progress_bar.state &&
|
||||||
|
|||||||
Reference in New Issue
Block a user