mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
patch 8.1.2120: some MB_ macros are more complicated than necessary
Problem: Some MB_ macros are more complicated than necessary. (Dominique Pelle) Solution: Simplify the macros. Expand inline.
This commit is contained in:
@@ -1654,7 +1654,7 @@ mch_print_text_out(char_u *p, int len)
|
||||
/* This is wrong when printing spaces for a TAB. */
|
||||
if (p[len] != NUL)
|
||||
{
|
||||
wlen = MB_PTR2LEN(p + len);
|
||||
wlen = mb_ptr2len(p + len);
|
||||
wp = enc_to_utf16(p + len, &wlen);
|
||||
if (wp != NULL)
|
||||
{
|
||||
|
Reference in New Issue
Block a user