Remove occurences of mb_head_off

This commit is contained in:
ZviRackover
2018-08-15 22:02:33 +03:00
parent b5cfac0894
commit 2bddc4ca54
20 changed files with 40 additions and 41 deletions

View File

@@ -118,7 +118,7 @@
// Advance multi-byte pointer, do not skip over composing chars.
# define MB_CPTR_ADV(p) (p += utf_ptr2len(p))
// Backup multi-byte pointer. Only use with "p" > "s" !
# define MB_PTR_BACK(s, p) (p -= mb_head_off((char_u *)s, (char_u *)p - 1) + 1)
# define MB_PTR_BACK(s, p) (p -= utf_head_off((char_u *)s, (char_u *)p - 1) + 1)
// get length of multi-byte char, not including composing chars
# define MB_CPTR2LEN(p) utf_ptr2len(p)