Commit 5240b89
fix(tui): restore rate-limit reset time in status header
The reapply on rust-v0.144.1 introduced a regression: when the reset
time falls on the same day, `format_reset_timestamp` returns a bare
`HH:MM` string with no space, so `split_once(' ')` returned `None` and
the header dropped the time, showing only `95%` instead of `95% 23:19`.
Restore the `compact_reset_time` helper from feat/rust-v0.144.0 that
falls back to the original string when there is no space, so the time
segment is always preserved.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>1 parent 9c9ca1f commit 5240b89
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
| |||
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
0 commit comments