summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-10-12 13:55:03 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-10-12 13:58:46 +0900
commitf2b33f038a90fabd4b0564338b44afcbf2be04bb (patch)
tree7177d10d3c6fff5df961d612f73ce55cae4b26f2 /src
parentd5913bf86e004cb5040dbc0a8c1059ff9a91565a (diff)
downloadfzf-f2b33f038a90fabd4b0564338b44afcbf2be04bb.tar.gz
Revert "Make query string in `--disabled` state bold as before"
This reverts commit ab407c4645952d09c4bb9b481b178717f0a0578f.
Diffstat (limited to 'src')
-rw-r--r--src/tui/tui.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tui/tui.go b/src/tui/tui.go
index 86c5d405..ca3d5531 100644
--- a/src/tui/tui.go
+++ b/src/tui/tui.go
@@ -1178,6 +1178,9 @@ func InitTheme(theme *ColorTheme, baseTheme *ColorTheme, boldify bool, forceBlac
ghost := theme.Ghost
if ghost.IsUndefined() {
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.Disabled = o(theme.Input, theme.Disabled)
@@ -1241,7 +1244,6 @@ func InitTheme(theme *ColorTheme, baseTheme *ColorTheme, boldify bool, forceBlac
theme.CurrentMatch = boldify(theme.CurrentMatch)
theme.Prompt = boldify(theme.Prompt)
theme.Input = boldify(theme.Input)
- theme.Disabled = boldify(theme.Disabled)
theme.Cursor = boldify(theme.Cursor)
theme.Spinner = boldify(theme.Spinner)
}