mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-13 20:14:12 +02:00
Forgot to change min bg opacity in the kitten code
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user