From 1a50f1eca1ce81da30cdf47291a485aea1a6431a Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 8 Jan 2017 02:06:39 +0900 Subject: [PATCH] [vim] Use --height instead of fzf-tmux --- plugin/fzf.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index c8c6c91..9c9c6db 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -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