mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-25 06:07:42 +00:00
parent
9f953fc944
commit
fb1b026d3d
@ -59,17 +59,17 @@ function! s:tmux_enabled()
|
|||||||
return 0
|
return 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
let not_zoomed = system('tmux list-panes -F "#F"') !~# 'Z'
|
||||||
if exists('s:tmux')
|
if exists('s:tmux')
|
||||||
return s:tmux
|
return s:tmux && not_zoomed
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let s:tmux = 0
|
let s:tmux = 0
|
||||||
let panes = system('tmux list-panes -F "#F"')
|
if exists('$TMUX') && executable(s:fzf_tmux)
|
||||||
if exists('$TMUX') && executable(s:fzf_tmux) && panes !~# 'Z'
|
|
||||||
let output = system('tmux -V')
|
let output = system('tmux -V')
|
||||||
let s:tmux = !v:shell_error && output >= 'tmux 1.7'
|
let s:tmux = !v:shell_error && output >= 'tmux 1.7'
|
||||||
endif
|
endif
|
||||||
return s:tmux
|
return s:tmux && not_zoomed
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:shellesc(arg)
|
function! s:shellesc(arg)
|
||||||
|
Loading…
Reference in New Issue
Block a user