diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2017-01-08 02:06:39 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-01-08 02:09:56 +0900 |
commit | 1a50f1eca1ce81da30cdf47291a485aea1a6431a (patch) | |
tree | 4e23b8f5779ce3aac94ed2211135b4012ef4910b /plugin | |
parent | 1448d631a7c72905f62dbb343a8f231a1c3cc52c (diff) |
[vim] Use --height instead of fzf-tmux
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/fzf.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index c8c6c91f..9c9c6db0 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 |