From 996abb283152219732b6da5d11ccc386f9565913 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 24 May 2024 00:46:01 +0900 Subject: [PATCH] Fix incorrect colors for selected-{fg,bg,hl} When a non-default base color scheme is specified, fzf would choose incorrect colors for selected-*. fzf --color 'light,fg:238,bg:255,bg+:253' -m --- src/tui/tui.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/tui/tui.go b/src/tui/tui.go index ee49774..23dba8b 100644 --- a/src/tui/tui.go +++ b/src/tui/tui.go @@ -702,9 +702,9 @@ func init() { Input: ColorAttr{colDefault, AttrUndefined}, Fg: ColorAttr{colDefault, AttrUndefined}, Bg: ColorAttr{colDefault, AttrUndefined}, - SelectedFg: ColorAttr{colDefault, AttrUndefined}, - SelectedBg: ColorAttr{colDefault, AttrUndefined}, - SelectedMatch: ColorAttr{colDefault, AttrUndefined}, + SelectedFg: ColorAttr{colUndefined, AttrUndefined}, + SelectedBg: ColorAttr{colUndefined, AttrUndefined}, + SelectedMatch: ColorAttr{colUndefined, AttrUndefined}, DarkBg: ColorAttr{colBlack, AttrUndefined}, Prompt: ColorAttr{colBlue, AttrUndefined}, Match: ColorAttr{colGreen, AttrUndefined}, @@ -732,9 +732,9 @@ func init() { Input: ColorAttr{colDefault, AttrUndefined}, Fg: ColorAttr{colDefault, AttrUndefined}, Bg: ColorAttr{colDefault, AttrUndefined}, - SelectedFg: ColorAttr{colDefault, AttrUndefined}, - SelectedBg: ColorAttr{colDefault, AttrUndefined}, - SelectedMatch: ColorAttr{colDefault, AttrUndefined}, + SelectedFg: ColorAttr{colUndefined, AttrUndefined}, + SelectedBg: ColorAttr{colUndefined, AttrUndefined}, + SelectedMatch: ColorAttr{colUndefined, AttrUndefined}, DarkBg: ColorAttr{236, AttrUndefined}, Prompt: ColorAttr{110, AttrUndefined}, Match: ColorAttr{108, AttrUndefined}, @@ -762,9 +762,9 @@ func init() { Input: ColorAttr{colDefault, AttrUndefined}, Fg: ColorAttr{colDefault, AttrUndefined}, Bg: ColorAttr{colDefault, AttrUndefined}, - SelectedFg: ColorAttr{colDefault, AttrUndefined}, - SelectedBg: ColorAttr{colDefault, AttrUndefined}, - SelectedMatch: ColorAttr{colDefault, AttrUndefined}, + SelectedFg: ColorAttr{colUndefined, AttrUndefined}, + SelectedBg: ColorAttr{colUndefined, AttrUndefined}, + SelectedMatch: ColorAttr{colUndefined, AttrUndefined}, DarkBg: ColorAttr{251, AttrUndefined}, Prompt: ColorAttr{25, AttrUndefined}, Match: ColorAttr{66, AttrUndefined},