From b3bf18b1c08524af8d1e80c53bc6017706fc6ca1 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 13 Feb 2023 15:25:39 +0900 Subject: [PATCH] [fzf-tmux] Fix version check The output of `tmux -V` starts with "tmux ". --- bin/fzf-tmux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/fzf-tmux b/bin/fzf-tmux index fd3258f7..a9d885c2 100755 --- a/bin/fzf-tmux +++ b/bin/fzf-tmux @@ -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"