Skip to content
Myr

Always check if the 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 9f953fc · Browse files · 1 file+4 added−4 removed
This commit

State

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

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:plugin/fzf.vim+4 added-4 removed
57 unmodified lines
58 if has('gui_running')59 return 060 endif6162 let not_zoomed = system('tmux list-panes -F "#F"') !~# 'Z'63 if exists('s:tmux')63 return s:tmux64 return s:tmux && not_zoomed65 endif6667 let s:tmux = 067 let panes = system('tmux list-panes -F "#F"')68 if exists('$TMUX') && executable(s:fzf_tmux) && panes !~# 'Z'68 if exists('$TMUX') && executable(s:fzf_tmux)69 let output = system('tmux -V')70 let s:tmux = !v:shell_error && output >= 'tmux 1.7'71 endif72 return s:tmux72 return s:tmux && not_zoomed73endfunction7475function! s:shellesc(arg)76 return '"'.substitute(a:arg, '"', '\\"', 'g').'"'
314 unmodified lines