Closed lolipodass closed 3 days ago
@sxyazi I probably expressed myself incorrectly in the title, but my main problem is not that the image exceeds the preview, but that after changing the preview, part of the preview remains It's just when you open the image and then this part stays, it's very distracting. or reason why is happens also that ioctl not impelemented?
This is how image rendering works: for displaying, it uses pixel sizes, and for erasing, it uses the font cell size.
The result shown in your image indicates that Yazi correctly handled erasing (in the preview area), but it didn't display correctly (exceeding the preview area) because Windows lacks an API to get the terminal pixel sizes.
So yeah, you just need to manually adjust max_width
and max_height
so that the pixel size matches the cell size of the preview area.
What system are you running Yazi on?
Windows
What terminal are you running Yazi in?
wezterm 20240203-110809-5046fc22
yazi --debug
outputDescribe the bug
When previewing large images, parts of the image that exceed the standart preview boundaries remain visible even after switching to a different object.
Minimal reproducer
Anything else?
No response
Validations
yazi --debug
) input box to the nightly that I triedmv ~/.config/yazi ~/.config/yazi-backup
)