mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 18:13:00 +08: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
|
@ -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 New Issue
Block a user