diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-11-14 12:40:46 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2021-11-14 12:49:12 +0100 |
commit | 0039ba04b0c907a6d23a0c07ed272f38c58c9739 (patch) | |
tree | 79b2dd9535e52d819fbddf2d02f3aff0db2ccc34 /src/nvim/hardcopy.c | |
parent | 9f27e6cbe70643e7b26e0b4f024fad3f75b1950c (diff) | |
download | rneovim-0039ba04b0c907a6d23a0c07ed272f38c58c9739.tar.gz rneovim-0039ba04b0c907a6d23a0c07ed272f38c58c9739.tar.bz2 rneovim-0039ba04b0c907a6d23a0c07ed272f38c58c9739.zip |
refactor(multibyte): eliminate mb_ptr2len alias for utfc_ptr2len
Diffstat (limited to 'src/nvim/hardcopy.c')
-rw-r--r-- | src/nvim/hardcopy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/hardcopy.c b/src/nvim/hardcopy.c index a6cbfa7a72..296c5cbdbf 100644 --- a/src/nvim/hardcopy.c +++ b/src/nvim/hardcopy.c @@ -572,7 +572,7 @@ static void prt_header(prt_settings_T *const psettings, const int pagenum, const int page_line = 0 - prt_header_height(); mch_print_start_line(true, page_line); for (char_u *p = tbuf; *p != NUL; ) { - const int l = (*mb_ptr2len)(p); + const int l = utfc_ptr2len(p); assert(l >= 0); if (mch_print_text_out(p, (size_t)l)) { page_line++; @@ -879,7 +879,7 @@ static colnr_T hardcopy_line(prt_settings_T *psettings, int page_line, prt_pos_T * Loop over the columns until the end of the file line or right margin. */ for (col = ppos->column; line[col] != NUL && !need_break; col += outputlen) { - if ((outputlen = (*mb_ptr2len)(line + col)) < 1) { + if ((outputlen = utfc_ptr2len(line + col)) < 1) { outputlen = 1; } // syntax highlighting stuff. |