src/nvim/screen.c
/*
 * Get the length of an item as it will be shown in the status line.
 */
Get the length of an item as it will be shown in the status line.
Get the length of an item as it will be shown in the status line .
static int status_match_len(expand_T *xp, char_u *s)
{
  int len = 0;
  int emenu = (xp->xp_context == EXPAND_MENUS
               || xp->xp_context == EXPAND_MENUNAMES);
  if (emenu && menu_is_separator(s))
    return 1;
  while (*s != NUL) {
    s += skip_status_match_char(xp, s);
    len += ptr2cells(s);
    MB_PTR_ADV(s);
  }
  return len;
}
static int status_match_len ( expand_T * xp , char_u * s ) { int len = 0 ; int emenu = ( xp -> xp_context == EXPAND_MENUS || xp -> xp_context == EXPAND_MENUNAMES ) ; if ( emenu && menu_is_separator ( s ) ) return 1 ; while ( * s != NUL ) { s += skip_status_match_char ( xp , s ) ; len += ptr2cells ( s ) ; MB_PTR_ADV ( s ) ; } return len ; }
Get the length of an item as it will be shown in the status line.
Get the length of an item as it will be shown in the status line .
/* Check for menu separators - replace with '|'. */