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

Do not use tmux pane if the current pane is zoomed

Close #303
parent 909ea1a6
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ while [ $# -gt 0 ]; do
shift
done
if [ -z "$TMUX_PANE" ]; then
if [ -z "$TMUX_PANE" ] || tmux list-panes -F '#F' | grep -q Z; then
fzf "${args[@]}"
exit $?
fi
......
......@@ -64,7 +64,8 @@ function! s:tmux_enabled()
endif
let s:tmux = 0
if exists('$TMUX') && executable(s:fzf_tmux)
let panes = system('tmux list-panes -F "#F"')
if exists('$TMUX') && executable(s:fzf_tmux) && panes !~# 'Z'
let output = system('tmux -V')
let s:tmux = !v:shell_error && output >= 'tmux 1.7'
endif
......
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