Use FZF_PREVIEW_LINES instead of LINES (#931)

Since fzf v0.18.0 FZF_PREVIEW_LINES is preferred over LINES
This commit is contained in:
Phong
2020-01-14 12:07:14 +07:00
committed by Junegunn Choi
parent 6eeeab64a8
commit dc4c4c2271

View File

@@ -32,7 +32,9 @@ if [ -z "$CENTER" ]; then
CENTER=0
fi
if [ -z "$LINES" ]; then
if [ -n "$FZF_PREVIEW_LINES" ]; then
LINES=$FZF_PREVIEW_LINES
else
if [ -r /dev/tty ]; then
LINES=$(stty size < /dev/tty | awk '{print $1}')
else