Skip to content
Myr

Do not use tmux pane if the current pane is zoomed

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Close #303

authored by Junegunn Choi · committed by Junegunn Choi · parent 909ea1a · Browse files · 2 files+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−2 removed

  • other:+3 added−2 removed

2 files+3 added−2 removed

modified:bin/fzf-tmux+1 added-1 removed
80 unmodified lines
81 esac82 shift83done8485if [ -z "$TMUX_PANE" ]; then85if [ -z "$TMUX_PANE" ] || tmux list-panes -F '#F' | grep -q Z; then86 fzf "${args[@]}"87 exit $?88fi89
47 unmodified lines
modified:plugin/fzf.vim+2 added-1 removed
62 unmodified lines
63 return s:tmux64 endif6566 let s:tmux = 067 let panes = system('tmux list-panes -F "#F"')67 if exists('$TMUX') && executable(s:fzf_tmux)68 if exists('$TMUX') && executable(s:fzf_tmux) && panes !~# 'Z'69 let output = system('tmux -V')70 let s:tmux = !v:shell_error && output >= 'tmux 1.7'71 endif72 return s:tmux
318 unmodified lines