diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-06 22:00:13 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-06 22:00:13 +0200 |
commit | 1614a14901558ca091329315d14a7d5e1b53aa47 (patch) | |
tree | 324ceeba0f8d5bda2f270b591a1beeed8e74125d /src/os_mswin.c | |
parent | 524f3b19ae16e08350010b5effe38d0637349285 (diff) | |
download | vim-git-8.1.2120.tar.gz |
patch 8.1.2120: some MB_ macros are more complicated than necessaryv8.1.2120
Problem: Some MB_ macros are more complicated than necessary. (Dominique
Pelle)
Solution: Simplify the macros. Expand inline.
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r-- | src/os_mswin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c index 5fb4809d2..b5ef8fce8 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -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) { |