diff options
Diffstat (limited to 'src/gui_w16.c')
-rw-r--r-- | src/gui_w16.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui_w16.c b/src/gui_w16.c index f7e6d597f..68667846b 100644 --- a/src/gui_w16.c +++ b/src/gui_w16.c @@ -664,12 +664,8 @@ gui_mch_draw_string( #ifdef FEAT_MBYTE if (has_mbyte) { - int cell_len = 0; - /* Compute the length in display cells. */ - for (n = 0; n < len; n += MB_BYTE2LEN(text[n])) - cell_len += (*mb_ptr2cells)(text + n); - rc.right = FILL_X(col + cell_len); + rc.right = FILL_X(col + mb_string2cells(text, len)); } else #endif |