diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-07-18 15:31:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-07-18 15:31:08 +0200 |
commit | 72597a57b526a8df333e77ef8a837b595baa18c7 (patch) | |
tree | 8b635e3dbb23f92a0a73b730cc79bc538c0b61b9 /src/gui_w16.c | |
parent | 9855d6b3610b3ae46a5522b9f8e1e4b521759e83 (diff) | |
download | vim-git-72597a57b526a8df333e77ef8a837b595baa18c7.tar.gz |
Added strwidth() and strchars() functions.
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 |