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:
Aaron Gyes 2019-10-22 16:28:56 -07:00
parent 5fa9fb52aa
commit 59e4314752

View File

@ -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;