Commit d15b6f8
fix(shared): correct line counting and wrapping
- Fix line counting for trailing newline in text.ts
- Respect width parameter in wrapExplanation instead of fixed 100
Fixes line counting when a string ends with a newline and makes
wrapExplanation respect the width parameter rather than a hard coded
value, improving text wrapping behavior.
Co-Authored-By: Git Agent <noreply@git-agent.dev>1 parent a4cf3c1 commit d15b6f8
1 file changed
Lines changed: 2 additions & 2 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments