aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/hardcopy.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-11-14 13:44:18 +0100
committerGitHub <noreply@github.com>2021-11-14 13:44:18 +0100
commit27f8b04f1791c29825bbe4b10e4a8db9472ecaee (patch)
tree1d8e2cd43baaca7f94ca08689b11231a128ec7cc /src/nvim/hardcopy.c
parentee3a58d42e7fce666eef570db6f2944c29303d98 (diff)
parent71a4d275dc3fa71c656c0d2423f60904822aa223 (diff)
downloadrneovim-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/hardcopy.c')
-rw-r--r--src/nvim/hardcopy.c4
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.