mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
Remove highlight_modifier_sloppy_background
It's no longer ever set
This commit is contained in:
parent
43a11af5e4
commit
d165d1df27
2 changed files with 1 additions and 6 deletions
|
@ -297,9 +297,7 @@ rgb_color_t highlight_get_color(highlight_spec_t highlight, bool is_background)
|
|||
const auto &vars = env_stack_t::principal();
|
||||
rgb_color_t result = rgb_color_t::normal();
|
||||
|
||||
// If sloppy_background is set, then we look at the foreground color even if is_background is
|
||||
// set.
|
||||
bool treat_as_background = is_background && !(highlight & highlight_modifier_sloppy_background);
|
||||
bool treat_as_background = is_background;
|
||||
|
||||
// Get the primary variable.
|
||||
size_t idx = highlight_get_primary(highlight);
|
||||
|
|
|
@ -56,9 +56,6 @@ enum {
|
|||
// The following values are modifiers.
|
||||
highlight_modifier_valid_path = 0x100,
|
||||
highlight_modifier_force_underline = 0x200,
|
||||
// Hackish, indicates that we should treat a foreground color as background, per certain
|
||||
// historical behavior.
|
||||
highlight_modifier_sloppy_background = 0x300,
|
||||
/* Very special value */
|
||||
highlight_spec_invalid = 0xFFFF
|
||||
|
||||
|
|
Loading…
Reference in a new issue