mirror of
https://github.com/Llewellynvdm/exa.git
synced 2025-01-22 21:38:24 +00:00
Merge pull request #167 from kballard/two_path_components
Print paths with 2 components properly
This commit is contained in:
commit
e671217d60
@ -29,7 +29,7 @@ pub fn filename(file: &File, colours: &Colours, links: bool, classify: bool) ->
|
||||
if coconut == 1 && parent.has_root() {
|
||||
bits.push(colours.symlink_path.paint("/"));
|
||||
}
|
||||
else if coconut > 1 {
|
||||
else if coconut >= 1 {
|
||||
bits.push(colours.symlink_path.paint(parent.to_string_lossy().to_string()));
|
||||
bits.push(colours.symlink_path.paint("/"));
|
||||
}
|
||||
@ -53,7 +53,7 @@ pub fn filename(file: &File, colours: &Colours, links: bool, classify: bool) ->
|
||||
if coconut == 1 && parent.has_root() {
|
||||
bits.push(colours.symlink_path.paint("/"));
|
||||
}
|
||||
else if coconut > 1 {
|
||||
else if coconut >= 1 {
|
||||
bits.push(colours.symlink_path.paint(parent.to_string_lossy().to_string()));
|
||||
bits.push(colours.symlink_path.paint("/"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user