Unified · Split
| @@ -521,10 +521,11 @@ static void write_term_msg(struct mp_log *log, int lev, bstr text, bstr *out) · 520 unmodified lines | ||
| 521 | 521 | break; |
| 522 | 522 | } |
| 523 | 523 | |
| 524 | + bool clip = bstr_eatstart0(&line, TERM_MSG_0); | |
| 524 | 525 | if (print_term) { |
| 525 | 526 | int line_w; |
| 526 | 527 | append_terminal_line(log, lev, line, &root->term_msg_tmp, &line_w, |
| 527 | − bstr_eatstart0(&line, TERM_MSG_0) ? term_w : INT_MAX); | |
| 528 | + clip ? term_w : INT_MAX); | |
| 528 | 529 | term_msg_lines += (!line_w || !term_w) |
| 529 | 530 | ? 1 : (line_w + term_w - 1) / term_w; |
| 530 | 531 | } |