mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
Use stripped path for lscolors to get style (#6561)
This commit is contained in:
parent
2791251268
commit
56bb9e92cb
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue