Support fzf-tmux when zoomed

This commit is contained in:
Pokey Rule
2015-12-07 17:45:22 -08:00
parent a1db64e7b1
commit d513a210c6
2 changed files with 19 additions and 7 deletions

View File

@@ -52,17 +52,13 @@ function! s:fzf_exec()
return s:exec
endfunction
function! s:tmux_not_zoomed()
return system('tmux list-panes -F "#F"') !~# 'Z'
endfunction
function! s:tmux_enabled()
if has('gui_running')
return 0
endif
if exists('s:tmux')
return s:tmux && s:tmux_not_zoomed()
return s:tmux
endif
let s:tmux = 0
@@ -70,7 +66,7 @@ function! s:tmux_enabled()
let output = system('tmux -V')
let s:tmux = !v:shell_error && output >= 'tmux 1.7'
endif
return s:tmux && s:tmux_not_zoomed()
return s:tmux
endfunction
function! s:shellesc(arg)