Missed a line from previous.

This commit is contained in:
nicm
2026-04-03 09:18:24 +00:00
parent bdd78ce38e
commit 0917cd7010

View File

@@ -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,