diff options
author | wm4 <wm4@nowhere> | 2014-04-13 13:03:31 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-13 13:03:31 +0200 |
commit | 62a483f18bb3c41dd4c4248531aba95f9ae24237 (patch) | |
tree | 482862bc992c12e5d0ee77f7069e65a5da14ca21 | |
parent | 750de181d7ef163090b46d4ee0abb1db90e2e391 (diff) | |
download | mpv-62a483f18bb3c41dd4c4248531aba95f9ae24237.tar.bz2 mpv-62a483f18bb3c41dd4c4248531aba95f9ae24237.tar.xz |
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.
-rw-r--r-- | player/osd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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])); |