mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
Refactor: remove mb_ptr2len_len, mb_ptr2cells and mb_ptr2cells_len
Remove occurences of these macros.
This commit is contained in:
@@ -893,7 +893,7 @@ static colnr_T hardcopy_line(prt_settings_T *psettings, int page_line, prt_pos_T
|
||||
} else {
|
||||
need_break = mch_print_text_out(line + col, (size_t)outputlen);
|
||||
if (has_mbyte)
|
||||
print_pos += (*mb_ptr2cells)(line + col);
|
||||
print_pos += utf_ptr2cells(line + col);
|
||||
else
|
||||
print_pos++;
|
||||
}
|
||||
@@ -2912,7 +2912,7 @@ int mch_print_text_out(char_u *const textp, size_t len)
|
||||
}
|
||||
}
|
||||
if (prt_out_mbyte) {
|
||||
const bool half_width = ((*mb_ptr2cells)(p) == 1);
|
||||
const bool half_width = (utf_ptr2cells(p) == 1);
|
||||
if (half_width) {
|
||||
char_width /= 2;
|
||||
}
|
||||
|
Reference in New Issue
Block a user