commit | 72597a57b526a8df333e77ef8a837b595baa18c7 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jul 18 15:31:08 2010 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jul 18 15:31:08 2010 +0200 |
tree | 8b635e3dbb23f92a0a73b730cc79bc538c0b61b9 | |
parent | 9855d6b3610b3ae46a5522b9f8e1e4b521759e83 [diff] [blame] |
Added strwidth() and strchars() functions.
diff --git a/src/gui_w32.c b/src/gui_w32.c index cfd4b78..1fdc993 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c
@@ -2261,12 +2261,8 @@ #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