mirror of https://github.com/mpv-player/mpv
msg: use … instead of ... dots
This commit is contained in:
parent
08e2acbae1
commit
6aa331289f
|
@ -397,13 +397,13 @@ static void append_terminal_line(struct mp_log *log, int lev,
|
||||||
|
|
||||||
const unsigned char *cut_pos = NULL;
|
const unsigned char *cut_pos = NULL;
|
||||||
int width = term_disp_width(bstr_splice(*term_msg, start, term_msg->len),
|
int width = term_disp_width(bstr_splice(*term_msg, start, term_msg->len),
|
||||||
term_w - 3, &cut_pos);
|
term_w - 1, &cut_pos);
|
||||||
if (cut_pos) {
|
if (cut_pos) {
|
||||||
int new_len = cut_pos - term_msg->start;
|
int new_len = cut_pos - term_msg->start;
|
||||||
bstr rem = {(unsigned char *)cut_pos, term_msg->len - new_len};
|
bstr rem = {(unsigned char *)cut_pos, term_msg->len - new_len};
|
||||||
term_msg->len = new_len;
|
term_msg->len = new_len;
|
||||||
|
|
||||||
bstr_xappend(root, term_msg, bstr0("..."));
|
bstr_xappend(root, term_msg, bstr0("\xE2\x80\xA6"));
|
||||||
|
|
||||||
while (rem.len) {
|
while (rem.len) {
|
||||||
if (bstr_eatstart0(&rem, "\033[")) {
|
if (bstr_eatstart0(&rem, "\033[")) {
|
||||||
|
|
Loading…
Reference in New Issue