diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2023-02-13 14:48:10 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-02-13 14:49:02 +0900 |
| commit | b1619f675ff35c9bf3545d3ef3e3c396f9b6d164 (patch) | |
| tree | df8703490f630be1967474c1ae6f1cb2362845ec /bin | |
| parent | 96c3de12eb717e33b175fd01a9aaaac84ea8d6af (diff) | |
| download | fzf-b1619f675ff35c9bf3545d3ef3e3c396f9b6d164.tar.gz | |
[fzf-tmux] Do not set --margin 0,1 on tmux 3.3 or above
Close #3162
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/fzf-tmux | 5 |
1 files 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 |
