Store a copy of the old status line, will be needed soon for new choose mode.

This commit is contained in:
nicm 2017-05-29 20:41:29 +00:00
parent 8a214b2f8e
commit b95e5827c1
2 changed files with 8 additions and 4 deletions

View File

@ -275,6 +275,10 @@ server_client_lost(struct client *c)
if (event_initialized(&c->status_timer))
evtimer_del(&c->status_timer);
screen_free(&c->status);
if (c->old_status != NULL) {
screen_free(c->old_status);
free(c->old_status);
}
free(c->title);
free((void *)c->cwd);