diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-11-14 13:44:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-14 13:44:18 +0100 |
commit | 27f8b04f1791c29825bbe4b10e4a8db9472ecaee (patch) | |
tree | 1d8e2cd43baaca7f94ca08689b11231a128ec7cc /src/nvim/buffer.c | |
parent | ee3a58d42e7fce666eef570db6f2944c29303d98 (diff) | |
parent | 71a4d275dc3fa71c656c0d2423f60904822aa223 (diff) | |
download | rneovim-27f8b04f1791c29825bbe4b10e4a8db9472ecaee.tar.gz rneovim-27f8b04f1791c29825bbe4b10e4a8db9472ecaee.tar.bz2 rneovim-27f8b04f1791c29825bbe4b10e4a8db9472ecaee.zip |
Merge pull request #16315 from bfredl/multibytes
refactor(multibyte): eliminate mb_* aliases for utf_* functions
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 4692f9e722..41bf38d76b 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -3461,7 +3461,7 @@ int build_stl_str_hl(win_T *wp, char_u *out, size_t outlen, char_u *fmt, int use if (fillchar == 0) { fillchar = ' '; - } else if (mb_char2len(fillchar) > 1) { + } else if (utf_char2len(fillchar) > 1) { // Can't handle a multi-byte fill character yet. fillchar = '-'; } @@ -3649,7 +3649,7 @@ int build_stl_str_hl(win_T *wp, char_u *out, size_t outlen, char_u *fmt, int use long n = 0; while (group_len >= stl_items[stl_groupitems[groupdepth]].maxwid) { group_len -= ptr2cells(t + n); - n += (*mb_ptr2len)(t + n); + n += utfc_ptr2len(t + n); } // } |