src/nvim/screen.c
/*
 * Get the character to use in a status line.  Get its attributes in "*attr".
 */
Get the character to use in a status line.  Get its attributes in "*attr".
Get the character to use in a status line . Get its attributes in " * attr " .
static int fillchar_status(int *attr, win_T *wp)
{
  int fill;
  bool is_curwin = (wp == curwin);
  if (is_curwin) {
    *attr = win_hl_attr(wp, HLF_S);
    fill = wp->w_p_fcs_chars.stl;
  } else {
    *attr = win_hl_attr(wp, HLF_SNC);
    fill = wp->w_p_fcs_chars.stlnc;
  }
  if (*attr != 0 && ((win_hl_attr(wp, HLF_S) != win_hl_attr(wp, HLF_SNC)
                      || !is_curwin || ONE_WINDOW)
                     || (wp->w_p_fcs_chars.stl != wp->w_p_fcs_chars.stlnc))) {
    return fill;
  }
  if (is_curwin) {
    return '^';
  }
  return '=';
}
static int fillchar_status ( int * attr , win_T * wp ) { int fill ; bool is_curwin = ( wp == curwin ) ; if ( is_curwin ) { * attr = win_hl_attr ( wp , HLF_S ) ; fill = wp -> w_p_fcs_chars . stl ; } else { * attr = win_hl_attr ( wp , HLF_SNC ) ; fill = wp -> w_p_fcs_chars . stlnc ; } if ( * attr != 0 && ( ( win_hl_attr ( wp , HLF_S ) != win_hl_attr ( wp , HLF_SNC ) || ! is_curwin || ONE_WINDOW ) || ( wp -> w_p_fcs_chars . stl != wp -> w_p_fcs_chars . stlnc ) ) ) { return fill ; } if ( is_curwin ) { return ' ' ; } return ' ' ; }
Get the character to use in a status line.
Get the character to use in a status line .
/* Use fill when there is highlighting, and highlighting of current
   * window differs, or the fillchars differ, or this is not the
   * current window */