mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-22 19:09:00 +00:00
[fzf-tmux] Fix version check
The output of `tmux -V` starts with "tmux ".
This commit is contained in:
parent
b1619f675f
commit
b3bf18b1c0
@ -180,7 +180,7 @@ trap 'cleanup' EXIT
|
||||
envs="export TERM=$TERM "
|
||||
if [[ "$opt" =~ "-E" ]]; then
|
||||
tmux_version=$(tmux -V)
|
||||
if [[ $tmux_version =~ ^3\.2[a-z]?$ ]]; then
|
||||
if [[ $tmux_version =~ ^tmux\ 3\.2[a-z]?$ ]]; then
|
||||
FZF_DEFAULT_OPTS="--margin 0,1 $FZF_DEFAULT_OPTS"
|
||||
else
|
||||
FZF_DEFAULT_OPTS="--border $FZF_DEFAULT_OPTS"
|
||||
|
Loading…
Reference in New Issue
Block a user