Skip to content
Myr

Add fzf_prefer_tmux option

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

authored by Edgar Hipp · committed by GitHub · parent cf9c957 · Browse files · 1 file+2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:plugin/fzf.vim+2 added-2 removed
138 unmodified lines
139 endif140 else141 let prefix = ''142 endif143 let tmux = !has('nvim') && s:tmux_enabled() && s:splittable(dict)143 let tmux = (!has('nvim') || get(g:, 'fzf_prefer_tmux', 0)) && s:tmux_enabled() && s:splittable(dict)144 let command = prefix.(tmux ? s:fzf_tmux(dict) : fzf_exec).' '.optstr.' > '.temps.result145146 if has('nvim')146 if has('nvim') && !tmux147 return s:execute_term(dict, command, temps)148 endif149150 let ret = tmux ? s:execute_tmux(dict, command, temps) : s:execute(dict, command, temps)
319 unmodified lines