summaryrefslogtreecommitdiff
path: root/src/os_mswin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r--src/os_mswin.c2
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)
{