From ac549a853ad4203f3e2601c9ca489b53e20ffeff Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 13 Oct 2016 10:42:26 +0900 Subject: [PATCH] [fzf-tmux] Fix bash condition Fix #702 --- bin/fzf-tmux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/fzf-tmux b/bin/fzf-tmux index 1c17921d..dd335d2b 100755 --- a/bin/fzf-tmux +++ b/bin/fzf-tmux @@ -109,7 +109,7 @@ while [[ $# -gt 0 ]]; do [[ -n "$skip" ]] && args+=("$arg") done -if [[ -z "$TMUX" ]] || [[ "$opt" =~ ^-h ]] && [[ "$columns" -le 40 ]] || [[ ! "$opt" =~ ^-h ]] && [[ "$lines" -le 15 ]]; then +if [[ -z "$TMUX" || "$opt" =~ ^-h && "$columns" -le 40 || ! "$opt" =~ ^-h && "$lines" -le 15 ]]; then "$fzf" "${args[@]}" exit $? fi