@@ -870,7 +870,7 @@ win_linetabsize(win_T *wp, char_u *line, colnr_T len)
870870 char_u * s ;
871871
872872 for (s = line ; * s != NUL && (len == MAXCOL || s < line + len );
873- mb_ptr_adv (s ))
873+ MB_PTR_ADV (s ))
874874 col += win_lbr_chartabsize (wp , line , s , col , NULL );
875875 return (int )col ;
876876}
@@ -1026,7 +1026,7 @@ lbr_chartabsize_adv(
10261026 int retval ;
10271027
10281028 retval = lbr_chartabsize (line , * s , col );
1029- mb_ptr_adv (* s );
1029+ MB_PTR_ADV (* s );
10301030 return retval ;
10311031}
10321032
@@ -1089,8 +1089,8 @@ win_lbr_chartabsize(
10891089 * needs a break here
10901090 */
10911091 if (wp -> w_p_lbr
1092- && vim_isbreak (c )
1093- && !vim_isbreak ( s [1 ])
1092+ && VIM_ISBREAK (c )
1093+ && !VIM_ISBREAK (( int ) s [1 ])
10941094 && wp -> w_p_wrap
10951095# ifdef FEAT_WINDOWS
10961096 && wp -> w_width != 0
@@ -1115,12 +1115,12 @@ win_lbr_chartabsize(
11151115 for (;;)
11161116 {
11171117 ps = s ;
1118- mb_ptr_adv (s );
1118+ MB_PTR_ADV (s );
11191119 c = * s ;
11201120 if (!(c != NUL
1121- && (vim_isbreak (c )
1122- || (!vim_isbreak (c )
1123- && (col2 == col || !vim_isbreak ( * ps ))))))
1121+ && (VIM_ISBREAK (c )
1122+ || (!VIM_ISBREAK (c )
1123+ && (col2 == col || !VIM_ISBREAK (( int ) * ps ))))))
11241124 break ;
11251125
11261126 col2 += win_chartabsize (wp , s , col2 );
@@ -1369,7 +1369,7 @@ getvcol(
13691369 break ;
13701370
13711371 vcol += incr ;
1372- mb_ptr_adv (ptr );
1372+ MB_PTR_ADV (ptr );
13731373 }
13741374 }
13751375 else
@@ -1390,7 +1390,7 @@ getvcol(
13901390 break ;
13911391
13921392 vcol += incr ;
1393- mb_ptr_adv (ptr );
1393+ MB_PTR_ADV (ptr );
13941394 }
13951395 }
13961396 if (start != NULL )
@@ -1403,7 +1403,8 @@ getvcol(
14031403 && (State & NORMAL )
14041404 && !wp -> w_p_list
14051405 && !virtual_active ()
1406- && !(VIsual_active && (* p_sel == 'e' || ltoreq (* pos , VIsual )))
1406+ && !(VIsual_active
1407+ && (* p_sel == 'e' || LTOREQ_POS (* pos , VIsual )))
14071408 )
14081409 * cursor = vcol + incr - 1 ; /* cursor at end */
14091410 else
@@ -1496,7 +1497,7 @@ getvcols(
14961497{
14971498 colnr_T from1 , from2 , to1 , to2 ;
14981499
1499- if (ltp (pos1 , pos2 ))
1500+ if (LT_POSP (pos1 , pos2 ))
15001501 {
15011502 getvvcol (wp , pos1 , & from1 , NULL , & to1 );
15021503 getvvcol (wp , pos2 , & from2 , NULL , & to2 );
@@ -1529,7 +1530,7 @@ skipwhite(char_u *q)
15291530{
15301531 char_u * p = q ;
15311532
1532- while (vim_iswhite (* p )) /* skip to next non-white */
1533+ while (VIM_ISWHITE (* p )) /* skip to next non-white */
15331534 ++ p ;
15341535 return p ;
15351536}
0 commit comments