mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 10:41:58 +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'):
|
if trailer in ('px', 'pt'):
|
||||||
unit = trailer
|
unit = trailer
|
||||||
val = float(x[:-2])
|
val = float(x[:-2])
|
||||||
|
else:
|
||||||
|
val = float(x)
|
||||||
else:
|
else:
|
||||||
val = float(x)
|
val = float(x)
|
||||||
return max(0, val), unit
|
return max(0, val), unit
|
||||||
|
|||||||
Reference in New Issue
Block a user