aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2025-01-05 02:36:33 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-01-18 08:23:41 +0000
commitde3becef96f30b96f0fceddf73805c3951ccb59f (patch)
tree66edfcf809618df064f6a30d1c18b4946fc5002b /config.c
parentterminal: Refresh only overlay when flash expires (diff)
Revert "config: don't allow colors.flash-alpha to be 1.0"
This reverts commit 56d2c3e990509d18de31e6009e0d0c6254f99b67.
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.c b/config.c
index 3b8ce7e8..7f1ce055 100644
--- a/config.c
+++ b/config.c
@@ -1445,8 +1445,8 @@ parse_section_colors(struct context *ctx)
if (!value_to_float(ctx, &alpha))
return false;
- if (alpha < 0. || alpha >= 1.) {
- LOG_CONTEXTUAL_ERR("not in range 0.0-0.999");
+ if (alpha < 0. || alpha > 1.) {
+ LOG_CONTEXTUAL_ERR("not in range 0.0-1.0");
return false;
}