[fzf-tmux] Fix bash condition

Fix #702
pull/704/head
Junegunn Choi 8 years ago
parent 053af9a1c8
commit ac549a853a
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -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

Loading…
Cancel
Save