helix/helix-term
Michael Davis 4919058e90
Use RopeSliceExt floor/ceil functions for goto_file_impl search cap
This is a good example use-case of the `floor_char_boundary` and
`ceil_char_boundary` functions added in the parent commit. In the
single-width, single-selection case in `goto_file` we cap the search
to either the current line or 1000 bytes before or after the cursor
(whichever case comes earlier). That byte index might not lie on a
character boundary so it needs to be fixed to either the prior or
later boundary.
2025-01-26 11:10:50 -05:00
..
src Use RopeSliceExt floor/ceil functions for goto_file_impl search cap 2025-01-26 11:10:50 -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
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
build.rs chore: clean up clippy lints (#11377) 2024-08-01 06:39:46 +09:00