Merge pull request #99 from justone/fix_zoom

update zoom to support pane or window
fix-tmux-next-3dot4
Ben Mills 10 years ago
commit cae215041d

@ -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

Loading…
Cancel
Save