statusLineGaugeMinWidth function

int statusLineGaugeMinWidth(
  1. double percent,
  2. int contextWindow
)

Minimum gap the embedded gauge needs to show both labels: percent label + window label + the 4 bridging cells (omp's embeddedContextGaugeMinWidth).

Implementation

int statusLineGaugeMinWidth(double percent, int contextWindow) =>
    formatStatusLinePercent(percent).length +
    formatTokens(contextWindow).length +
    4;