zed/crates/util
Michael Sloan 2d431e9b51
Improve truncate efficiency and fix OBOE in truncate_and_remove_front (#22591)
* Skip walking string for truncate when byte len is <= char limit

* Fix `truncate_and_remove_front` returning string that is `max_chars +
1` in length. Now more consistent with `truncate_and_trailoff` behavior.

* Fix `truncate_and_remove_front` adding ellipsis when max_chars == char
length

Release Notes:

- N/A
2025-01-02 22:35:36 +00:00
..
src Improve truncate efficiency and fix OBOE in truncate_and_remove_front (#22591) 2025-01-02 22:35:36 +00:00
Cargo.toml linux: Fix "Failed to start language server" errors when starting Zed from .desktop file (#22335) 2024-12-22 10:05:52 +00:00
LICENSE-APACHE