m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-08 11:23:47 -05:00

Make query string in --disabled state bold as before

Fix #4546
This commit is contained in:
Junegunn Choi
2025-10-11 09:35:48 +09:00
parent 91c4bef35f
commit ab407c4645

View File

@@ -1178,9 +1178,6 @@ func InitTheme(theme *ColorTheme, baseTheme *ColorTheme, boldify bool, forceBlac
ghost := theme.Ghost ghost := theme.Ghost
if ghost.IsUndefined() { if ghost.IsUndefined() {
ghost.Attr = Dim ghost.Attr = Dim
} else if ghost.IsColorDefined() && !ghost.IsAttrDefined() {
// Don't want to inherit 'bold' from 'input'
ghost.Attr = AttrRegular
} }
theme.Ghost = o(theme.Input, ghost) theme.Ghost = o(theme.Input, ghost)
theme.Disabled = o(theme.Input, theme.Disabled) theme.Disabled = o(theme.Input, theme.Disabled)
@@ -1244,6 +1241,7 @@ func InitTheme(theme *ColorTheme, baseTheme *ColorTheme, boldify bool, forceBlac
theme.CurrentMatch = boldify(theme.CurrentMatch) theme.CurrentMatch = boldify(theme.CurrentMatch)
theme.Prompt = boldify(theme.Prompt) theme.Prompt = boldify(theme.Prompt)
theme.Input = boldify(theme.Input) theme.Input = boldify(theme.Input)
theme.Disabled = boldify(theme.Disabled)
theme.Cursor = boldify(theme.Cursor) theme.Cursor = boldify(theme.Cursor)
theme.Spinner = boldify(theme.Spinner) theme.Spinner = boldify(theme.Spinner)
} }