mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-31 09:01:25 +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)
This commit is contained in:
parent
ba193665e2
commit
6c4d658c15
10
src/pager.rs
10
src/pager.rs
@ -503,15 +503,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