diff options
author | Pokey Rule <pokey.rule@gmail.com> | 2015-12-07 17:45:22 -0800 |
---|---|---|
committer | Pokey Rule <pokey.rule@gmail.com> | 2015-12-07 17:45:22 -0800 |
commit | d513a210c6b59106d899c8e3287e24a3ffc5956d (patch) | |
tree | 242d55486b78297de341a78658063e10aadc0882 /plugin | |
parent | a1db64e7b1588bc44dccd3b3895a075977f70ce4 (diff) |
Support fzf-tmux when zoomed
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/fzf.vim | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index fddab518..d8106935 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -52,17 +52,13 @@ function! s:fzf_exec() return s:exec endfunction -function! s:tmux_not_zoomed() - return system('tmux list-panes -F "#F"') !~# 'Z' -endfunction - function! s:tmux_enabled() if has('gui_running') return 0 endif if exists('s:tmux') - return s:tmux && s:tmux_not_zoomed() + return s:tmux endif let s:tmux = 0 @@ -70,7 +66,7 @@ function! s:tmux_enabled() let output = system('tmux -V') let s:tmux = !v:shell_error && output >= 'tmux 1.7' endif - return s:tmux && s:tmux_not_zoomed() + return s:tmux endfunction function! s:shellesc(arg) |