matcha
matcha copied to clipboard
BUG: Float precision loss in terminal cell size calculation
Describe the bug Cell height at view/html.go:47 calculated as int then converted to float. Precision lost for terminals with fractional pixel sizes.
To reproduce
- Use terminal with 19.5 pixel cell height
- Integer division rounds to 19
- Image rendering misaligned
Expected behavior Calculate cell size as float throughout
Matcha version master
OS All
Additional context File: view/html.go line 47 Affects image rendering accuracy
This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.
Closing due to inactivity. Reopen if still relevant.