From d306d43a594587b1a68331df45760f1e38dfb3ac Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Wed, 22 Jan 2014 14:19:00 -0800 Subject: [PATCH] update zoom to support pane or window --- plugin/vimux.vim | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugin/vimux.vim b/plugin/vimux.vim index a5e2c7f..1b50780 100644 --- a/plugin/vimux.vim +++ b/plugin/vimux.vim @@ -81,9 +81,12 @@ function! VimuxCloseRunner() endfunction function! VimuxZoomRunner() - if exists("g:VimuxRunnerPaneIndex") - call system("tmux resize-pane -Z -t ".g:VimuxRunnerPaneIndex) - unlet g:VimuxRunnerPaneIndex + if exists("g:VimuxRunnerIndex") + if _VimuxRunnerType() == "pane" + call system("tmux resize-pane -Z -t ".g:VimuxRunnerIndex) + elseif _VimuxRunnerType() == "window" + call system("tmux select-window -t ".g:VimuxRunnerIndex) + endif endif endfunction