From d513a210c6b59106d899c8e3287e24a3ffc5956d Mon Sep 17 00:00:00 2001 From: Pokey Rule Date: Mon, 7 Dec 2015 17:45:22 -0800 Subject: Support fzf-tmux when zoomed --- plugin/fzf.vim | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'plugin') 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) -- cgit v1.2.3