mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-14 20:44:32 +02:00
Fix #2943
This commit is contained in:
@@ -678,6 +678,8 @@ def window_border_width(x: Union[str, int, float]) -> Tuple[float, str]:
|
||||
if trailer in ('px', 'pt'):
|
||||
unit = trailer
|
||||
val = float(x[:-2])
|
||||
else:
|
||||
val = float(x)
|
||||
else:
|
||||
val = float(x)
|
||||
return max(0, val), unit
|
||||
|
||||
Reference in New Issue
Block a user