1
0
Эх сурвалжийг харах

Merge pull request #34 from jgilchrist/master

Fix a missing '/' in symlink targets
Ben S 11 жил өмнө
parent
commit
ef58c30bc7
1 өөрчлөгдсөн 1 нэмэгдсэн , 6 устгасан
  1. 1 6
      src/file.rs

+ 1 - 6
src/file.rs

@@ -162,15 +162,10 @@ impl<'a> File<'a> {
                         for component in path_bytes.init().iter() {
                             let string = String::from_utf8_lossy(component).to_string();
                             path_prefix.push_str(&string);
+                            path_prefix.push_str("/");
                         }
                     }
 
-                    // Only add a slash when there's something in the path
-                    // prefix so far.
-                    if path_bytes.len() > 1 {
-                        path_prefix.push_str("/");
-                    }
-
                     format!("{} {} {}",
                             style.paint(name),
                             GREY.paint("=>"),