mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-22 20:15:11 +00:00
Use system path sep in symlink
This commit is contained in:
parent
23a1c8a41f
commit
e3204a574e
@ -226,7 +226,7 @@ impl<'a, 'dir, C: Colours> FileName<'a, 'dir, C> {
|
||||
let coconut = parent.components().count();
|
||||
|
||||
if coconut == 1 && parent.has_root() {
|
||||
bits.push(self.colours.symlink_path().paint("/"));
|
||||
bits.push(self.colours.symlink_path().paint(String::from(std::path::MAIN_SEPARATOR)));
|
||||
}
|
||||
else if coconut >= 1 {
|
||||
escape(
|
||||
@ -235,7 +235,7 @@ impl<'a, 'dir, C: Colours> FileName<'a, 'dir, C> {
|
||||
self.colours.symlink_path(),
|
||||
self.colours.control_char(),
|
||||
);
|
||||
bits.push(self.colours.symlink_path().paint("/"));
|
||||
bits.push(self.colours.symlink_path().paint(String::from(std::path::MAIN_SEPARATOR)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user