helix/helix-term
Michael Davis 360c6bb061
stdx: Replace RopeSliceExt::byte_to_next_char with ceil_char_boundary
The new `RopeSliceExt::ceil_char_boundary` from the parent commits can
be used to implement `RopeSliceExt::byte_to_next_char` when used with
`RopeSlice::byte_to_char`. That function had only one caller and that
caller will eventually disappear when we switch to Ropey v2 and drop
character indexing, so we can drop `byte_to_next_char` now and replace
its caller with `byte_to_char` plus `ceil_char_boundary`.

This change keeps the unit tests for `byte_to_next_char` and checks them
against a polyfill of `byte_to_char` plus `ceil_char_boundary` to ensure
that `byte_to_next_char`'s intended behavior is not changed.
2025-01-26 11:11:53 -05:00
..
src stdx: Replace RopeSliceExt::byte_to_next_char with ceil_char_boundary 2025-01-26 11:11:53 -05:00
tests feat: passing multile of the same files in the arguments places a cursor at each position (#12192) 2025-01-23 14:04:02 -06:00
.gitignore Initial import. 2020-05-20 18:14:51 +09:00
build.rs chore: clean up clippy lints (#11377) 2024-08-01 06:39:46 +09:00
Cargo.toml feat: passing multile of the same files in the arguments places a cursor at each position (#12192) 2025-01-23 14:04:02 -06:00