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:
parent
cf9c957c66
commit
fe5db5aadc
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user