summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-07-28 00:30:01 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-07-28 00:30:17 +0900
commitfb1b026d3daaaa9b64d8f49ae6fbbf6727ac33c0 (patch)
tree89c09590d42dfdd2dde42af38b1ed602d871a4ea
parent9f953fc9440a6df9dcfc177555e0b4dd7444fd0a (diff)
Always check if the pane is zoomed
Close #303
-rw-r--r--plugin/fzf.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 1a245d99..c4deb9ec 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -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)