mirror of https://github.com/mpv-player/mpv
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:
parent
54a7acb7dc
commit
db77d7836e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue