mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-11 07:10:56 +00:00
Merge pull request #34 from jgilchrist/master
Fix a missing '/' in symlink targets
This commit is contained in:
commit
ef58c30bc7
@ -162,14 +162,9 @@ 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);
|
||||
}
|
||||
}
|
||||
|
||||
// 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),
|
||||
|
Loading…
Reference in New Issue
Block a user