From b1619f675ff35c9bf3545d3ef3e3c396f9b6d164 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 13 Feb 2023 14:48:10 +0900 Subject: [PATCH] [fzf-tmux] Do not set --margin 0,1 on tmux 3.3 or above Close #3162 --- bin/fzf-tmux | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/fzf-tmux b/bin/fzf-tmux index 44c60515..fd3258f7 100755 --- a/bin/fzf-tmux +++ b/bin/fzf-tmux @@ -179,9 +179,10 @@ trap 'cleanup' EXIT envs="export TERM=$TERM " if [[ "$opt" =~ "-E" ]]; then - FZF_DEFAULT_OPTS="--margin 0,1 $FZF_DEFAULT_OPTS" tmux_version=$(tmux -V) - if [[ ! $tmux_version =~ 3\.2 ]]; then + if [[ $tmux_version =~ ^3\.2[a-z]?$ ]]; then + FZF_DEFAULT_OPTS="--margin 0,1 $FZF_DEFAULT_OPTS" + else FZF_DEFAULT_OPTS="--border $FZF_DEFAULT_OPTS" opt="-B $opt" fi