Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kirawi committed Feb 10, 2023
1 parent 99f2b2c commit 71492ce
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions helix-core/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,6 @@ pub fn is_sep_byte(b: u8) -> bool {
}

pub fn escape_path(path: &Path) -> PathBuf {
// let mut res = Vec::with_capacity(path.as_ref().as_os_str().len());
// for component in path.as_ref() {
// let mut bytes = vec![b'%'];
// bytes.append(&mut path_as_bytes(component));
// res.append(&mut bytes);
// }
// path_from_bytes(&res).unwrap()

let s = path.as_os_str().to_os_string();
let mut bytes = os_str_as_bytes(&s);
for b in bytes.iter_mut() {
Expand Down

0 comments on commit 71492ce

Please sign in to comment.