2
0
mirror of https://github.com/junegunn/fzf synced 2024-11-16 12:12:48 +00:00

Add fzf_prefer_tmux option

This commit is contained in:
Edgar Hipp 2016-06-10 09:05:05 +02:00 committed by GitHub
parent cf9c957c66
commit fe5db5aadc

View File

@ -140,10 +140,10 @@ try
else
let prefix = ''
endif
let tmux = !has('nvim') && s:tmux_enabled() && s:splittable(dict)
let tmux = (!has('nvim') || get(g:, 'fzf_prefer_tmux', 0)) && s:tmux_enabled() && s:splittable(dict)
let command = prefix.(tmux ? s:fzf_tmux(dict) : fzf_exec).' '.optstr.' > '.temps.result
if has('nvim')
if has('nvim') && !tmux
return s:execute_term(dict, command, temps)
endif