Commit c8d8881
Fix panic on long directory paths in MultiTree and RefsTree
strings.Repeat panicked with negative count when the directory path
was longer than the default box width (60 chars). Added the same
width guard that Tree already had.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ec038b1 commit c8d8881
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
205 | 208 | | |
206 | 209 | | |
207 | 210 | | |
| |||
393 | 396 | | |
394 | 397 | | |
395 | 398 | | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
396 | 402 | | |
397 | 403 | | |
398 | 404 | | |
| |||
0 commit comments