mirror of
https://github.com/tmux/tmux.git
synced 2026-04-06 07:38:33 +00:00
Missed a line from previous.
This commit is contained in:
14
screen.c
14
screen.c
@@ -122,6 +122,7 @@ screen_reinit(struct screen *s)
|
||||
|
||||
screen_clear_selection(s);
|
||||
screen_free_titles(s);
|
||||
screen_set_progress_bar(s, PROGRESS_BAR_HIDDEN, 0);
|
||||
screen_reset_hyperlinks(s);
|
||||
}
|
||||
|
||||
@@ -283,6 +284,19 @@ screen_pop_title(struct screen *s)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Set the progress bar state and progress. The progress will not be updated
|
||||
* if p is negative.
|
||||
*/
|
||||
void
|
||||
screen_set_progress_bar(struct screen *s, enum progress_bar_state pbs, int p)
|
||||
{
|
||||
s->progress_bar.state = pbs;
|
||||
if (p >= 0 && pbs != PROGRESS_BAR_INDETERMINATE)
|
||||
s->progress_bar.progress = p;
|
||||
}
|
||||
|
||||
|
||||
/* Resize screen with options. */
|
||||
void
|
||||
screen_resize_cursor(struct screen *s, u_int sx, u_int sy, int reflow,
|
||||
|
||||
Reference in New Issue
Block a user