mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
fish_color_valid_path: also apply bg and underline colors
Closes #12622
This commit is contained in:
@@ -190,10 +190,15 @@ fn resolve_spec_uncached(highlight: &HighlightSpec, vars: &dyn Environment) -> T
|
||||
if highlight.valid_path {
|
||||
if let Some(valid_path_var) = vars.get(L!("fish_color_valid_path")) {
|
||||
let valid_path_face = parse_text_face(valid_path_var.as_list());
|
||||
// Historical behavior is to not apply background.
|
||||
if let Some(fg) = valid_path_face.fg {
|
||||
face.fg = fg;
|
||||
}
|
||||
if let Some(bg) = valid_path_face.bg {
|
||||
face.bg = bg;
|
||||
}
|
||||
if let Some(underline_color) = valid_path_face.underline_color {
|
||||
face.underline_color = underline_color;
|
||||
}
|
||||
face.style = face.style.union_prefer_right(valid_path_face.style);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user