From 62a483f18bb3c41dd4c4248531aba95f9ae24237 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 13 Apr 2014 13:03:31 +0200 Subject: player: hack to fix --msgmodule --term-osd-bar Basically a cheap hack to fix that the --msgmodule prefix will cause an unwanted linebreak by making the line too long. Suggested by Hamuko in github issue #710. Fixes #710. --- player/osd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player') diff --git a/player/osd.c b/player/osd.c index d8ba356b33..57dd4aff97 100644 --- a/player/osd.c +++ b/player/osd.c @@ -135,7 +135,7 @@ static void add_term_osd_bar(struct MPContext *mpctx, char **line, int width) for (int n = 0; n < 5; n++) parts[n] = bstr_split_utf8(chars, &chars); - saddf(line, "%.*s", BSTR_P(parts[0])); + saddf(line, "\r%.*s", BSTR_P(parts[0])); for (int n = 0; n < pos; n++) saddf(line, "%.*s", BSTR_P(parts[1])); saddf(line, "%.*s", BSTR_P(parts[2])); -- cgit v1.2.3