Commit e481a8f
committed
fix: adjust multiline paragraph offsets for exceeded max lines
- Ensure `multiParagraph.lineCount` is considered when computing offset limits.
- Prevent index out-of-bounds errors with `minOf` safeguard.1 parent 1dd4746 commit e481a8f
1 file changed
Lines changed: 8 additions & 4 deletions
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4009 | 4009 | | |
4010 | 4010 | | |
4011 | 4011 | | |
| 4012 | + | |
4012 | 4013 | | |
4013 | 4014 | | |
4014 | | - | |
4015 | | - | |
4016 | | - | |
| 4015 | + | |
| 4016 | + | |
| 4017 | + | |
| 4018 | + | |
4017 | 4019 | | |
4018 | | - | |
| 4020 | + | |
| 4021 | + | |
| 4022 | + | |
4019 | 4023 | | |
4020 | 4024 | | |
4021 | 4025 | | |
| |||
0 commit comments