[fzf-tmux] Fix bash condition

Fix #702
This commit is contained in:
Junegunn Choi 2016-10-13 10:42:26 +09:00
parent 053af9a1c8
commit ac549a853a
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

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