Skip to content
Myr

[fzf-tmux] Do not set --margin 0,1 on tmux 3.3 or above

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Close #3162

authored by Junegunn Choi · committed by Junegunn Choi · parent 96c3de1 · Browse files · 1 file+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:bin/fzf-tmux+3 added-2 removed
177 unmodified lines
178trap 'cleanup' EXIT179180envs="export TERM=$TERM "181if [[ "$opt" =~ "-E" ]]; then182 FZF_DEFAULT_OPTS="--margin 0,1 $FZF_DEFAULT_OPTS"182 tmux_version=$(tmux -V)184 if [[ ! $tmux_version =~ 3\.2 ]]; then183 if [[ $tmux_version =~ ^3\.2[a-z]?$ ]]; then184 FZF_DEFAULT_OPTS="--margin 0,1 $FZF_DEFAULT_OPTS"185 else186 FZF_DEFAULT_OPTS="--border $FZF_DEFAULT_OPTS"187 opt="-B $opt"188 fi189fi
41 unmodified lines