mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-29 19:14:13 +00:00
This change makes sure that `LineWithInvisibles::from_chunks` applies the max line length limit to invisible character replacements as it does to normal text chunks. Without this change, pathological lines containing many invisible characters could produce unbounded number of line fragments. Closes FR-6. Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Release Notes: - Fixed a rare panic that could occur when lines in the editor contained many invisible characters. |
||
|---|---|---|
| .. | ||
| benches | ||
| src | ||
| Cargo.toml | ||
| LICENSE-GPL | ||