@@ -5379,7 +5379,7 @@ suggest_trie_walk(
53795379#ifdef FEAT_MBYTE
53805380 if (has_mbyte )
53815381 {
5382- n = mb_cptr2len (p );
5382+ n = MB_CPTR2LEN (p );
53835383 c = mb_ptr2char (p );
53845384 if (p [n ] == NUL )
53855385 c2 = NUL ;
@@ -5477,9 +5477,9 @@ suggest_trie_walk(
54775477#ifdef FEAT_MBYTE
54785478 if (has_mbyte )
54795479 {
5480- n = mb_cptr2len (p );
5480+ n = MB_CPTR2LEN (p );
54815481 c = mb_ptr2char (p );
5482- fl = mb_cptr2len (p + n );
5482+ fl = MB_CPTR2LEN (p + n );
54835483 c2 = mb_ptr2char (p + n );
54845484 if (!soundfold && !spell_iswordp (p + n + fl , curwin ))
54855485 c3 = c ; /* don't swap non-word char */
@@ -5596,10 +5596,10 @@ suggest_trie_walk(
55965596#ifdef FEAT_MBYTE
55975597 if (has_mbyte )
55985598 {
5599- n = mb_cptr2len (p );
5599+ n = MB_CPTR2LEN (p );
56005600 c = mb_ptr2char (p );
5601- fl = mb_cptr2len (p + n );
5602- fl += mb_cptr2len (p + n + fl );
5601+ fl = MB_CPTR2LEN (p + n );
5602+ fl += MB_CPTR2LEN (p + n + fl );
56035603 mch_memmove (p , p + n , fl );
56045604 mb_char2bytes (c , p + fl );
56055605 stack [depth ].ts_fidxtry = sp -> ts_fidx + n + fl ;
@@ -5661,10 +5661,10 @@ suggest_trie_walk(
56615661#ifdef FEAT_MBYTE
56625662 if (has_mbyte )
56635663 {
5664- n = mb_cptr2len (p );
5665- n += mb_cptr2len (p + n );
5664+ n = MB_CPTR2LEN (p );
5665+ n += MB_CPTR2LEN (p + n );
56665666 c = mb_ptr2char (p + n );
5667- tl = mb_cptr2len (p + n );
5667+ tl = MB_CPTR2LEN (p + n );
56685668 mch_memmove (p + tl , p , n );
56695669 mb_char2bytes (c , p );
56705670 stack [depth ].ts_fidxtry = sp -> ts_fidx + n + tl ;
@@ -5955,8 +5955,8 @@ find_keepcap_word(slang_T *slang, char_u *fword, char_u *kword)
59555955#ifdef FEAT_MBYTE
59565956 if (has_mbyte )
59575957 {
5958- flen = mb_cptr2len (fword + fwordidx [depth ]);
5959- ulen = mb_cptr2len (uword + uwordidx [depth ]);
5958+ flen = MB_CPTR2LEN (fword + fwordidx [depth ]);
5959+ ulen = MB_CPTR2LEN (uword + uwordidx [depth ]);
59605960 }
59615961 else
59625962#endif
0 commit comments