mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-08 05:24:47 +08:00
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:
@@ -32,7 +32,9 @@ if [ -z "$CENTER" ]; then
|
|||||||
CENTER=0
|
CENTER=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$LINES" ]; then
|
if [ -n "$FZF_PREVIEW_LINES" ]; then
|
||||||
|
LINES=$FZF_PREVIEW_LINES
|
||||||
|
else
|
||||||
if [ -r /dev/tty ]; then
|
if [ -r /dev/tty ]; then
|
||||||
LINES=$(stty size < /dev/tty | awk '{print $1}')
|
LINES=$(stty size < /dev/tty | awk '{print $1}')
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user