diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-11-20 19:14:19 +0100 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-04-13 13:37:21 +0200 |
commit | 247ef82a7691e2614e52f544e8e5b62070d7c2f0 (patch) | |
tree | 06353efa0e4bdd79dc8f2952e0507752bff1f983 /common | |
parent | a9354b36caed24d13987cad3a87b16227cc36f2c (diff) | |
download | mpv-247ef82a7691e2614e52f544e8e5b62070d7c2f0.tar.bz2 mpv-247ef82a7691e2614e52f544e8e5b62070d7c2f0.tar.xz |
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.
Diffstat (limited to 'common')
-rw-r--r-- | common/msg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/msg.c b/common/msg.c index 9b17d5925b..0ccbdfc9c9 100644 --- a/common/msg.c +++ b/common/msg.c @@ -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; |