summaryrefslogtreecommitdiff
path: root/src/tui/tui.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-10-11 09:35:48 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-10-11 09:35:48 +0900
commitab407c4645952d09c4bb9b481b178717f0a0578f (patch)
treebf726deb5c687e449b9ea0ddbe2d175109c5f385 /src/tui/tui.go
parent91c4bef35f4ad3ebfc8562e8b97e224d1b622db5 (diff)
downloadfzf-ab407c4645952d09c4bb9b481b178717f0a0578f.tar.gz
Make query string in `--disabled` state bold as before
Fix #4546
Diffstat (limited to 'src/tui/tui.go')
-rw-r--r--src/tui/tui.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tui/tui.go b/src/tui/tui.go
index ca3d5531..86c5d405 100644
--- a/src/tui/tui.go
+++ b/src/tui/tui.go
@@ -1178,9 +1178,6 @@ 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)
@@ -1244,6 +1241,7 @@ 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)
}