mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-25 06:07:42 +00:00
[vim] Use --height instead of fzf-tmux
This commit is contained in:
parent
1448d631a7
commit
1a50f1eca1
@ -298,7 +298,8 @@ try
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
let use_height = has_key(dict, 'down') &&
|
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 tmux = !use_height && (!has('nvim') || get(g:, 'fzf_prefer_tmux', 0)) && s:tmux_enabled() && s:splittable(dict)
|
||||||
let term = has('nvim') && !tmux
|
let term = has('nvim') && !tmux
|
||||||
if use_height
|
if use_height
|
||||||
|
Loading…
Reference in New Issue
Block a user