Revert "player: cut off status line on terminal width"

No longer needed, wrapped status line is supported now. Also this didn't
work correctly if status were decorated with module name or time.

This reverts commit ab6fac43b4.
This commit is contained in:
Kacper Michajłow 2023-10-20 20:57:04 +02:00 committed by Dudemanguy
parent 54a7acb7dc
commit db77d7836e
1 changed files with 0 additions and 5 deletions

View File

@ -134,11 +134,6 @@ static void term_osd_set_status_lazy(struct MPContext *mpctx, const char *text)
{
talloc_free(mpctx->term_osd_status);
mpctx->term_osd_status = talloc_strdup(mpctx, text);
int w = 80, h = 24;
terminal_get_size(&w, &h);
if (strlen(mpctx->term_osd_status) > w && !strchr(mpctx->term_osd_status, '\n'))
mpctx->term_osd_status[w] = '\0';
}
static void add_term_osd_bar(struct MPContext *mpctx, char **line, int width)