appendStatus wraps one segment in styleStatus and appends it, keeping renderStatusBar readable instead of repeating the wrap at each call site.
(segs []string, s string)
| 330 | segs = appendStatus(segs, m.status) |
| 331 | } |
| 332 | return strings.Join(segs, sep) |
| 333 | } |
| 334 | |
| 335 | // appendStatus wraps one segment in styleStatus and appends it, keeping |
| 336 | // renderStatusBar readable instead of repeating the wrap at each call site. |
| 337 | func appendStatus(segs []string, s string) []string { |