mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Move status line free into its own function.
This commit is contained in:
18
status.c
18
status.c
@ -296,7 +296,23 @@ status_get_window_at(struct client *c, u_int x)
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
/* Draw status for client on the last lines of given context. */
|
||||
/* Free status line. */
|
||||
void
|
||||
status_free(struct client *c)
|
||||
{
|
||||
struct status_line *sl = &c->status;
|
||||
|
||||
if (event_initialized(&sl->timer))
|
||||
evtimer_del(&sl->timer);
|
||||
|
||||
screen_free(&sl->status);
|
||||
if (sl->old_status != NULL) {
|
||||
screen_free(sl->old_status);
|
||||
free(sl->old_status);
|
||||
}
|
||||
}
|
||||
|
||||
/* Draw status line for client. */
|
||||
int
|
||||
status_redraw(struct client *c)
|
||||
{
|
||||
|
Reference in New Issue
Block a user