summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-02-13 15:25:39 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-02-13 15:25:39 +0900
commitb3bf18b1c08524af8d1e80c53bc6017706fc6ca1 (patch)
tree03f37aa9bcd6fa9ec146261b6a0e46495def0f60 /bin
parentb1619f675ff35c9bf3545d3ef3e3c396f9b6d164 (diff)
[fzf-tmux] Fix version check
The output of `tmux -V` starts with "tmux ".
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fzf-tmux2
1 files changed, 1 insertions, 1 deletions
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"