Skip to content
Myr

Vim plugin: do not enable tmux-integration if version < 1.7

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

authored by Junegunn Choi · committed by Junegunn Choi · parent 6ad38bd · Browse files · 1 file+14 added−1 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+14 added−1 removed

  • other:+14 added−1 removed

1 file+14 added−1 removed

modified:plugin/fzf.vim+14 added-1 removed
38 unmodified lines
39else40 let s:exec = 'fzf'41endif4243function! s:tmux_enabled()44 if exists('s:tmux')45 return s:tmux46 endif4748 let s:tmux = 049 if exists('$TMUX')50 let output = system('tmux -V')51 let s:tmux = !v:shell_error && output >= 'tmux 1.7'52 endif53 return s:tmux54endfunction5556function! s:shellesc(arg)57 return '"'.substitute(a:arg, '"', '\\"', 'g').'"'58endfunction59
27 unmodified lines
87 let prefix = ''88 endif89 let command = prefix.s:exec.' '.optstr.' > '.temps.result9078 if exists('$TMUX') && has_key(dict, 'tmux') &&91 if s:tmux_enabled() && has_key(dict, 'tmux') &&92 \ dict.tmux > 0 && winheight(0) >= s:min_tmux_height93 return s:execute_tmux(dict, command, temps)94 else95 return s:execute(dict, command, temps)
112 unmodified lines