mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 12:44:24 +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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user