mirror of
https://github.com/mpv-player/mpv
synced 2025-03-18 17:40:30 +00:00
msg: don't keep status line in partial
Noticed while looking at this code, we shouldn't append status line to partial when !print_term.
This commit is contained in:
parent
a9354b36ca
commit
247ef82a76
@ -498,9 +498,9 @@ static void write_term_msg(struct mp_log *log, int lev, bstr text, bstr *out)
|
||||
write_msg_to_buffers(log, lev, line);
|
||||
}
|
||||
|
||||
if (lev == MSGL_STATUS && print_term) {
|
||||
if (lev == MSGL_STATUS) {
|
||||
int line_w = 0;
|
||||
if (str.len)
|
||||
if (str.len && print_term)
|
||||
append_terminal_line(log, lev, str, &root->term_msg_tmp, &line_w);
|
||||
term_msg_lines += !term_w ? (str.len ? 1 : 0)
|
||||
: (line_w + term_w - 1) / term_w;
|
||||
|
Loading…
Reference in New Issue
Block a user