From b3ea6526e7d6afc972926d04bc56a865f7b5e46f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 22 May 2024 11:34:37 +0530 Subject: [PATCH] Forgot to change min bg opacity in the kitten code --- tools/cmd/at/set_background_opacity.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tools/cmd/at/set_background_opacity.go b/tools/cmd/at/set_background_opacity.go index 039b49a6e..fa67e8d69 100644 --- a/tools/cmd/at/set_background_opacity.go +++ b/tools/cmd/at/set_background_opacity.go @@ -9,11 +9,5 @@ func parse_opacity(arg string) (float64, error) { if err != nil { return 0, nil } - if ans < 0.1 { - ans = 0.1 - } - if ans > 1 { - ans = 1 - } - return ans, nil + return max(0, min(ans, 1)), nil }