mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 17:01:55 +08:00
pager: fix selected color regression
To check: ```fish fish_config theme choose None set -g fish_pager_color_selected_completion blue ``` Now the selected color will only apply to the parentheses Missed in 43e2d7b48c21d1377c2bd34b3b2ef9c0016a38e4 (Port pager.cpp) (cherry picked from commit 6c4d658c15e258e48cce4874cb638c5d23522051)
This commit is contained in:
parent
5aec9e3b47
commit
93ac5d0eb3
10
src/pager.rs
10
src/pager.rs
@ -495,15 +495,17 @@ impl Pager {
|
||||
let bg_role = modify_role(HighlightRole::pager_background);
|
||||
let bg = HighlightSpec::with_bg(bg_role);
|
||||
let prefix_col = HighlightSpec::with_fg_bg(
|
||||
if self.highlight_prefix {
|
||||
modify_role(if self.highlight_prefix {
|
||||
HighlightRole::pager_prefix
|
||||
} else {
|
||||
HighlightRole::pager_completion
|
||||
},
|
||||
}),
|
||||
bg_role,
|
||||
);
|
||||
let comp_col = HighlightSpec::with_fg_bg(HighlightRole::pager_completion, bg_role);
|
||||
let desc_col = HighlightSpec::with_fg_bg(HighlightRole::pager_description, bg_role);
|
||||
let comp_col =
|
||||
HighlightSpec::with_fg_bg(modify_role(HighlightRole::pager_completion), bg_role);
|
||||
let desc_col =
|
||||
HighlightSpec::with_fg_bg(modify_role(HighlightRole::pager_description), bg_role);
|
||||
|
||||
// Print the completion part
|
||||
let mut comp_remaining = comp_width;
|
||||
|
Loading…
x
Reference in New Issue
Block a user