shell: use msg_outtrans_len_attr for :!cmd

fixes #7830 and #7788
This commit is contained in:
Björn Linse
2018-01-12 08:32:28 +01:00
parent 0851057a8d
commit 2d99b81ab5
4 changed files with 32 additions and 50 deletions

View File

@@ -19372,14 +19372,10 @@ void ex_echo(exarg_T *eap)
}
msg_putchar_attr((uint8_t)(*p), echo_attr);
} else {
if (has_mbyte) {
int i = (*mb_ptr2len)((const char_u *)p);
int i = (*mb_ptr2len)((const char_u *)p);
(void)msg_outtrans_len_attr((char_u *)p, i, echo_attr);
p += i - 1;
} else {
(void)msg_outtrans_len_attr((char_u *)p, 1, echo_attr);
}
(void)msg_outtrans_len_attr((char_u *)p, i, echo_attr);
p += i - 1;
}
}
}