Skip to content
Snippets Groups Projects
Commit fb1b026d authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Always check if the pane is zoomed

Close #303
parent 9f953fc9
No related branches found
No related tags found
No related merge requests found
......@@ -59,17 +59,17 @@ function! s:tmux_enabled()
return 0
endif
let not_zoomed = system('tmux list-panes -F "#F"') !~# 'Z'
if exists('s:tmux')
return s:tmux
return s:tmux && not_zoomed
endif
let s:tmux = 0
let panes = system('tmux list-panes -F "#F"')
if exists('$TMUX') && executable(s:fzf_tmux) && panes !~# 'Z'
if exists('$TMUX') && executable(s:fzf_tmux)
let output = system('tmux -V')
let s:tmux = !v:shell_error && output >= 'tmux 1.7'
endif
return s:tmux
return s:tmux && not_zoomed
endfunction
function! s:shellesc(arg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment