-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Checklist
- I have read through the manual page (
man fzf) - I have searched through the existing issues
- For bug reports, I have checked if the bug is reproducible in the latest version of fzf
Output of fzf --version
0.67.0 (2ab923f)
OS
- Linux
- macOS
- Windows
- Etc.
Shell
- bash
- zsh
- fish
Problem / Steps to reproduce
Using Windows Terminal to access my Unraid server, images are previewed incorrectly. They are smaller than they should be, even though the preview appears to be receiving the correct $FZF_PREVIEW_COLUMNSx$FZF_PREVIEW_LINES. The below is with a blank .zshrc and .profile, with the command fzf --preview 'fzf-preview.sh {}'. I added some echo commands to the fzf-preview.sh to show that there seems to be a padding around the image, at least at the bottom? It only happens with images. Previewing a text file does not have extra padding. I also echoed $dim before the image to show the $FZF_PREVIEW_COLUMNSx$FZF_PREVIEW_LINES that the preview is receiving. Using bash gives the same behavior as in zsh.
This doesn't happen when viewing the same folder locally on my Windows machine, even though it's still through Windows Terminal and zsh.
Windows Terminal -> ssh unraid -> zsh:
Windows Terminal -> zsh:
Versions:
Windows Terminal Preview Version: 1.24.2682.0
chafa --version: Chafa version 1.18.0
zsh --version: zsh 5.8 (x86_64-slackware-linux-gnu)
bash --version: GNU bash, version 5.3.3(1)-release (x86_64-slackware-linux-gnu)
Unraid version: 7.2.3
cat /proc/version: Linux version 6.12.54-Unraid (root@Develop) (gcc (GCC) 15.2.0, GNU ld version 2.45-slack151) #1 SMP PREEMPT_DYNAMIC Tue Oct 21 15:58:46 PDT 2025