@@ -4119,7 +4119,7 @@ win_line(
41194119 c = c_extra ;
41204120#ifdef FEAT_MBYTE
41214121 mb_c = c ; /* doesn't handle non-utf-8 multi-byte! */
4122- if (enc_utf8 && ( * mb_char2len ) (c ) > 1 )
4122+ if (enc_utf8 && utf_char2len (c ) > 1 )
41234123 {
41244124 mb_utf8 = TRUE;
41254125 u8cc [0 ] = 0 ;
@@ -4140,7 +4140,7 @@ win_line(
41404140 {
41414141 /* If the UTF-8 character is more than one byte:
41424142 * Decode it into "mb_c". */
4143- mb_l = ( * mb_ptr2len ) (p_extra );
4143+ mb_l = utfc_ptr2len (p_extra );
41444144 mb_utf8 = FALSE;
41454145 if (mb_l > n_extra )
41464146 mb_l = 1 ;
@@ -4219,7 +4219,7 @@ win_line(
42194219 {
42204220 /* If the UTF-8 character is more than one byte: Decode it
42214221 * into "mb_c". */
4222- mb_l = ( * mb_ptr2len ) (ptr );
4222+ mb_l = utfc_ptr2len (ptr );
42234223 mb_utf8 = FALSE;
42244224 if (mb_l > 1 )
42254225 {
@@ -4612,7 +4612,7 @@ win_line(
46124612 }
46134613#ifdef FEAT_MBYTE
46144614 mb_c = c ;
4615- if (enc_utf8 && ( * mb_char2len ) (c ) > 1 )
4615+ if (enc_utf8 && utf_char2len (c ) > 1 )
46164616 {
46174617 mb_utf8 = TRUE;
46184618 u8cc [0 ] = 0 ;
@@ -4634,7 +4634,7 @@ win_line(
46344634 }
46354635#ifdef FEAT_MBYTE
46364636 mb_c = c ;
4637- if (enc_utf8 && ( * mb_char2len ) (c ) > 1 )
4637+ if (enc_utf8 && utf_char2len (c ) > 1 )
46384638 {
46394639 mb_utf8 = TRUE;
46404640 u8cc [0 ] = 0 ;
@@ -4765,7 +4765,7 @@ win_line(
47654765 saved_attr2 = char_attr ; /* save current attr */
47664766#ifdef FEAT_MBYTE
47674767 mb_c = c ;
4768- if (enc_utf8 && ( * mb_char2len ) (c ) > 1 )
4768+ if (enc_utf8 && utf_char2len (c ) > 1 )
47694769 {
47704770 mb_utf8 = TRUE;
47714771 u8cc [0 ] = 0 ;
@@ -4839,7 +4839,7 @@ win_line(
48394839 }
48404840#ifdef FEAT_MBYTE
48414841 mb_c = c ;
4842- if (enc_utf8 && ( * mb_char2len ) (c ) > 1 )
4842+ if (enc_utf8 && utf_char2len (c ) > 1 )
48434843 {
48444844 mb_utf8 = TRUE;
48454845 u8cc [0 ] = 0 ;
@@ -5003,7 +5003,7 @@ win_line(
50035003 }
50045004# ifdef FEAT_MBYTE
50055005 mb_c = c ;
5006- if (enc_utf8 && ( * mb_char2len ) (c ) > 1 )
5006+ if (enc_utf8 && utf_char2len (c ) > 1 )
50075007 {
50085008 mb_utf8 = TRUE;
50095009 u8cc [0 ] = 0 ;
@@ -5110,7 +5110,7 @@ win_line(
51105110 extra_attr = HL_ATTR (HLF_AT );
51115111 }
51125112 mb_c = c ;
5113- if (enc_utf8 && ( * mb_char2len ) (c ) > 1 )
5113+ if (enc_utf8 && utf_char2len (c ) > 1 )
51145114 {
51155115 mb_utf8 = TRUE;
51165116 u8cc [0 ] = 0 ;
@@ -5383,7 +5383,7 @@ win_line(
53835383 char_attr = HL_ATTR (HLF_AT );
53845384#ifdef FEAT_MBYTE
53855385 mb_c = c ;
5386- if (enc_utf8 && ( * mb_char2len ) (c ) > 1 )
5386+ if (enc_utf8 && utf_char2len (c ) > 1 )
53875387 {
53885388 mb_utf8 = TRUE;
53895389 u8cc [0 ] = 0 ;
0 commit comments