forked from extern/nushell
Use stripped path for lscolors to get style (#6561)
This commit is contained in:
parent
2791251268
commit
56bb9e92cb
@ -591,10 +591,10 @@ fn render_path_name(
|
||||
|
||||
let (style, has_metadata) = match std::fs::symlink_metadata(&stripped_path) {
|
||||
Ok(metadata) => (
|
||||
ls_colors.style_for_path_with_metadata(path, Some(&metadata)),
|
||||
ls_colors.style_for_path_with_metadata(&stripped_path, Some(&metadata)),
|
||||
true,
|
||||
),
|
||||
Err(_) => (ls_colors.style_for_path(path), false),
|
||||
Err(_) => (ls_colors.style_for_path(&stripped_path), false),
|
||||
};
|
||||
|
||||
// clickable links don't work in remote SSH sessions
|
||||
|
Loading…
Reference in New Issue
Block a user