[vim] Use --height instead of fzf-tmux

This commit is contained in:
Junegunn Choi 2017-01-08 02:06:39 +09:00
parent 1448d631a7
commit 1a50f1eca1
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -298,7 +298,8 @@ try
endif
let use_height = has_key(dict, 'down') &&
\ !(has('nvim') || has('win32') || has('win64') || s:present(dict, 'up', 'left', 'right'))
\ !(has('nvim') || has('win32') || has('win64') || s:present(dict, 'up', 'left', 'right')) &&
\ executable('tput') && filereadable('/dev/tty')
let tmux = !use_height && (!has('nvim') || get(g:, 'fzf_prefer_tmux', 0)) && s:tmux_enabled() && s:splittable(dict)
let term = has('nvim') && !tmux
if use_height