Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-stdx/src/path.rs')
| -rw-r--r-- | helix-stdx/src/path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-stdx/src/path.rs b/helix-stdx/src/path.rs index 53081b0f..e2ef9a58 100644 --- a/helix-stdx/src/path.rs +++ b/helix-stdx/src/path.rs @@ -269,7 +269,7 @@ pub fn get_path_suffix(src: RopeSlice<'_>, match_single_file: bool) -> Option<Ro regex .find(Input::new(src)) - .map(|mat| src.byte_slice(mat.range())) + .map(|mat| src.slice(mat.range())) } /// Returns an iterator of the **byte** ranges in src that contain a path. |