Closed TobisLee closed 2 weeks ago
Anyone wants to give it a go?
When the terminal size changes, the resize
command is triggered:
and this method calls self.current_or_mut(opt.tab).repos
:
I think we can handle it there.
I noticed that the cursor disappears in both the preview and current panels when resizing the window.
Thanks for the hint. I checked the repos
code, which should reposition the cursor, but it doesn't seem to fix the issue.
From what I understand, the cursor's position is correct after resizing, but the displayed content isn't. I noticed that the offset
variable represents the starting position of the first file shown in the current panel within the entire file list. I managed to fix the cursor disappearing in the current panel by adjusting the offset value, but the issue persists in the preview panel.
We can start by only implementing the current panels.
What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
kitty 0.35.2
yazi --debug
outputDid you try the latest nightly build to see if the problem got fixed?
Yes, and I updated the debug information above (
yazi --debug
) to the nightly that I triedDescribe the bug
When the window size is reduced, the out-of-bounds cursor cannot be displayed in the preview pane.
Preview panel cursor shows in fullscreen.
Preview panel cursor disappears after resizing the window.
Minimal reproducer
Anything else?
No response