mirror of
https://github.com/mpv-player/mpv
synced 2025-03-30 07:18:17 +00:00
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.
This commit is contained in:
parent
750de181d7
commit
62a483f18b
@ -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]));
|
||||
|
Loading…
Reference in New Issue
Block a user