mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-01 10:13:59 +08:00
Apply --reverse for fish_color_*'s being used for a background
e.g. Allows using `--reverse` in fish_pager_color_search_match and actually having the selected pager items display reversed.
This commit is contained in:
parent
5fa9fb52aa
commit
59e4314752
|
@ -476,6 +476,10 @@ rgb_color_t parse_color(const env_var_t &var, bool is_background) {
|
|||
if (string_prefixes_string(prefix, next)) {
|
||||
color_name = wcstring(next, wcslen(prefix));
|
||||
}
|
||||
// Reverse should be meaningful in either context
|
||||
if (next == L"--reverse" || next == L"-r") {
|
||||
is_reverse = true;
|
||||
}
|
||||
} else {
|
||||
if (next == L"--bold" || next == L"-o")
|
||||
is_bold = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user