matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Float precision loss in terminal cell size calculation

Open andrinoff opened this issue 7 months ago • 2 comments

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

  1. Use terminal with 19.5 pixel cell height
  2. Integer division rounds to 19
  3. 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

andrinoff avatar Apr 21 '26 14:04 andrinoff

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.

floatpanebot avatar May 22 '26 06:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar Jun 04 '26 19:06 floatpanebot