diff options
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screen.c b/src/screen.c index 5b9a0737f..74898f82d 100644 --- a/src/screen.c +++ b/src/screen.c @@ -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; |