mirror of
https://github.com/tmux/tmux.git
synced 2026-05-30 22:26:18 +00:00
Fix crash when minimising pane.
This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user