Skip to content
Myr

[neovim] Fix Neovim plugin to use terminal instead of --height

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Close #1066 Close #1068

authored by Junegunn Choi · committed by Junegunn Choi · parent 077ae51 · Browse files · 1 file+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:plugin/fzf.vim+4 added-2 removed
387 unmodified lines
388 let prefer_tmux = get(g:, 'fzf_prefer_tmux', 0)389 let use_height = has_key(dict, 'down') && !has('gui_running') &&390 \ !(has('nvim') || s:is_win || has('win32unix') || s:present(dict, 'up', 'left', 'right', 'window')) &&391 \ executable('tput') && filereadable('/dev/tty')392 let has_term = has('nvim-0.2.1') || has('nvim') && !s:is_win || has('terminal') && has('patch-8.0.995')393 let use_term = has_term && (has('gui_running') || s:is_win || !use_height && s:present(dict, 'down', 'up', 'left', 'right', 'window'))392 let has_vim8_term = has('terminal') && has('patch-8.0.995')393 let has_nvim_term = has('nvim-0.2.1') || has('nvim') && !s:is_win394 let use_term = has_nvim_term ||395 \ has_vim8_term && (has('gui_running') || s:is_win || !use_height && s:present(dict, 'down', 'up', 'left', 'right', 'window'))396 let use_tmux = (!use_height && !use_term || prefer_tmux) && !has('win32unix') && s:tmux_enabled() && s:splittable(dict)397 if prefer_tmux && use_tmux398 let use_height = 0399 let use_term = 0
409 unmodified lines