mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
pager: Use selected color for parentheses if applicable
This always used pager_completion even for the selected one, now it uses pager_selected_completion for that. Fixes #10328
This commit is contained in:
parent
5641ae71b8
commit
31c2eb3f3c
1 changed files with 8 additions and 1 deletions
|
@ -558,7 +558,14 @@ impl Pager {
|
|||
}
|
||||
|
||||
assert!(desc_remaining >= 2);
|
||||
let paren_col = HighlightSpec::with_fg_bg(HighlightRole::pager_completion, bg_role);
|
||||
let paren_col = HighlightSpec::with_fg_bg(
|
||||
if selected {
|
||||
HighlightRole::pager_selected_completion
|
||||
} else {
|
||||
HighlightRole::pager_completion
|
||||
},
|
||||
bg_role,
|
||||
);
|
||||
desc_remaining -= print_max(L!("("), paren_col, 1, false, &mut line_data);
|
||||
desc_remaining -=
|
||||
print_max(&c.desc, desc_col, desc_remaining - 1, false, &mut line_data);
|
||||
|
|
Loading…
Reference in a new issue