mirror of https://github.com/helix-editor/helix
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. |
||
---|---|---|
.. | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
build.rs |