mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-26 02:41:54 +00:00
Fix #2943
This commit is contained in:
parent
ad57467c93
commit
1d607bf13e
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue