mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
Added strwidth() and strchars() functions.
This commit is contained in:
@@ -6168,8 +6168,8 @@ win_redr_status(wp)
|
||||
int clen = 0, i;
|
||||
|
||||
/* Count total number of display cells. */
|
||||
for (i = 0; p[i] != NUL; i += (*mb_ptr2len)(p + i))
|
||||
clen += (*mb_ptr2cells)(p + i);
|
||||
clen = mb_string2cells(p, -1);
|
||||
|
||||
/* Find first character that will fit.
|
||||
* Going from start to end is much faster for DBCS. */
|
||||
for (i = 0; p[i] != NUL && clen >= this_ru_col - 1;
|
||||
|
Reference in New Issue
Block a user