summaryrefslogtreecommitdiffstats
path: root/common/msg.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-11-20 19:14:19 +0100
committerKacper Michajłow <kasper93@gmail.com>2024-04-13 13:37:21 +0200
commit247ef82a7691e2614e52f544e8e5b62070d7c2f0 (patch)
tree06353efa0e4bdd79dc8f2952e0507752bff1f983 /common/msg.c
parenta9354b36caed24d13987cad3a87b16227cc36f2c (diff)
downloadmpv-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/msg.c')
-rw-r--r--common/msg.c4
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;