diff options
author | Blaž Hrastnik | 2022-01-06 02:03:54 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-01-06 02:03:54 +0000 |
commit | 3e4f81547c679619c96d0a6477ebf1d3badfe661 (patch) | |
tree | 3e8791650c4c31864f88a026259bf35a0410dbcd /helix-term/src/ui/mod.rs | |
parent | b18bda928f0c7889031ec0327b9468280dbc3791 (diff) |
fix: Use std::path::MAIN_SEPARATOR to determine completion
Refs #1439
Diffstat (limited to 'helix-term/src/ui/mod.rs')
-rw-r--r-- | helix-term/src/ui/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index 9e096311..9ff9118f 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -283,7 +283,7 @@ pub mod completers { let is_tilde = input.starts_with('~') && input.len() == 1; let path = helix_core::path::expand_tilde(Path::new(input)); - let (dir, file_name) = if input.ends_with('/') { + let (dir, file_name) = if input.ends_with(std::path::MAIN_SEPARATOR) { (path, None) } else { let file_name = path |