summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-10-20 20:57:04 +0200
committerDudemanguy <random342@airmail.cc>2023-11-08 21:55:08 +0000
commitdb77d7836efab703d05b219832ac4cfe8d86a99f (patch)
treeb2d0fd93ddede3a3e9665f1ce6afa40bfd75a007 /player
parent54a7acb7dcc8b4f23721dc6718ae8ee7df275b1a (diff)
downloadmpv-db77d7836efab703d05b219832ac4cfe8d86a99f.tar.bz2
mpv-db77d7836efab703d05b219832ac4cfe8d86a99f.tar.xz
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 ab6fac43b4bc34949bd9c4da8e911fc9f3489a32.
Diffstat (limited to 'player')
-rw-r--r--player/osd.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/player/osd.c b/player/osd.c
index 90789bd1df..dc0322947d 100644
--- a/player/osd.c
+++ b/player/osd.c
@@ -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)