src/nvim/screen.c
// Compute the width of the foldcolumn.  Based on 'foldcolumn' and how much
// space is available for window "wp", minus "col".
Compute the width of the foldcolumn.  Based on 'foldcolumn' and how much
space is available for window "wp", minus "col".
Compute the width of the foldcolumn . Based on ' foldcolumn ' and how much space is available for window " wp " minus " col " .
static int compute_foldcolumn(win_T *wp, int col)
{
  int fdc = win_fdccol_count(wp);
  int wmw = wp == curwin && p_wmw == 0 ? 1 : p_wmw;
  int wwidth = wp->w_grid.Columns;
  if (fdc > wwidth - (col + wmw)) {
    fdc = wwidth - (col + wmw);
  }
  return fdc;
}
static int compute_foldcolumn ( win_T * wp , int col ) { int fdc = win_fdccol_count ( wp ) ; int wmw = wp == curwin && p_wmw == 0 ? 1 : p_wmw ; int wwidth = wp -> w_grid . Columns ; if ( fdc > wwidth - ( col + wmw ) ) { fdc = wwidth - ( col + wmw ) ; } return fdc ; }
Compute the width of the foldcolumn.
Compute the width of the foldcolumn .