sxyazi / yazi

💥 Blazing fast terminal file manager written in Rust, based on async I/O.
https://yazi-rs.github.io
MIT License
14.67k stars 332 forks source link

Residual of preview image on Windows #1540

Closed ndtoan96 closed 4 weeks ago

ndtoan96 commented 4 weeks ago

What system are you running Yazi on?

Windows

What terminal are you running Yazi in?

Wezterm

yazi --debug output

Yazi
    Version: 0.3.1 (4fa37cb 2024-08-23)
    Debug  : false
    OS     : windows-x86_64 (windows)

Ya
    Version: 0.3.1 (4fa37cb 2024-08-23)

Emulator
    Emulator.via_env: ("xterm-256color", "WezTerm")
    Emulator.via_csi: Ok(Unknown([]))
    Emulator.detect : WezTerm

Adapter
    Adapter.matches: Iterm2

Desktop
    XDG_SESSION_TYPE: None
    WAYLAND_DISPLAY : None
    DISPLAY         : None

SSH
    shared.in_ssh_connection: false

WSL
    /proc/sys/fs/binfmt_misc/WSLInterop: false

Variables
    SHELL              : None
    EDITOR             : Some("hx")
    VISUAL             : None
    YAZI_FILE_ONE      : Some("C:\\Program Files\\Git\\usr\\bin\\file.exe")
    YAZI_CONFIG_HOME   : None

Text Opener
    default: Some(Opener { run: "%EDITOR% \"%*\"", block: true, orphan: false, desc: "EDITOR", for_: None, spread: true })
    block  : Some(Opener { run: "%EDITOR% \"%*\"", block: true, orphan: false, desc: "EDITOR", for_: None, spread: true })

Multiplexers
    TMUX               : false
    tmux version       : program not found
    ZELLIJ_SESSION_NAME: None
    Zellij version     : program not found

Dependencies
    file             : 5.45
    ueberzugpp       : program not found
    ffmpegthumbnailer: program not found
    magick           : program not found
    fzf              : 0.43.0
    fd               : 8.7.1
    rg               : 13.0.0
    chafa            : program not found
    zoxide           : 0.9.4
    7z               : 3.1
    7zz              : program not found
    jq               : program not found

--------------------------------------------------
When reporting a bug, please also upload the `yazi.log` log file - only upload the most recent content by time.
You can find it in the "C:\\Users\\ASUS\\AppData\\Roaming\\yazi\\state" directory.

Did 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 tried

Describe the bug

When cursor moves to an image, the size of preview image seems to surpass the preview pane boundary. When the cursor moves pass the image, a part (at the edge) of the image is still present.

Note: I haven't use the image preview feature until now since Windows Terminal does not support image protocol. Recently trying Wezterm, and this happens. So I'm not sure if it is yazi problem or Wezterm problem.

Minimal reproducer

On Windows, with wezterm terminal, try to preview an image.

Anything else?

https://github.com/user-attachments/assets/a8593bb8-c8ac-4ead-9257-20650483770f

sxyazi commented 4 weeks ago

See https://yazi-rs.github.io/docs/image-preview#size