@ 261102.1

250924.3 · e8cb31541984e93dcbaa5f2ac5f56ec390279d5e

Apply shfmt to bash script files (make fmt)

reading declarations

Changes to bin/fzf-preview.sh. All files

bin/fzf-preview.sh

@@ -49,9 +49,9 @@ if [[ ! $type =~ image/ ]]; then fi  dim=${FZF_PREVIEW_COLUMNS}x${FZF_PREVIEW_LINES}-if [[ $dim = x ]]; then+if [[ $dim == x ]]; then   dim=$(stty size < /dev/tty | awk '{print $2 "x" $1}')-elif ! [[ $KITTY_WINDOW_ID ]] && (( FZF_PREVIEW_TOP + FZF_PREVIEW_LINES == $(stty size < /dev/tty | awk '{print $1}') )); then+elif ! [[ $KITTY_WINDOW_ID ]] && ((FZF_PREVIEW_TOP + FZF_PREVIEW_LINES == $(stty size < /dev/tty | awk '{print $1}'))); then   # Avoid scrolling issue when the Sixel image touches the bottom of the screen   # * https://github.com/junegunn/fzf/issues/2544   dim=${FZF_PREVIEW_COLUMNS}x$((FZF_PREVIEW_LINES - 1))