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:
Kacper Michajłow 2023-11-20 19:14:19 +01:00
parent a9354b36ca
commit 247ef82a76
1 changed files with 2 additions and 2 deletions

View File

@ -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;