Skip to content

Commit cae2150

Browse files
committed
Merge pull request #99 from justone/fix_zoom
update zoom to support pane or window
2 parents 602b2bc + d306d43 commit cae2150

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

plugin/vimux.vim

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,12 @@ function! VimuxCloseRunner()
8181
endfunction
8282

8383
function! VimuxZoomRunner()
84-
if exists("g:VimuxRunnerPaneIndex")
85-
call system("tmux resize-pane -Z -t ".g:VimuxRunnerPaneIndex)
86-
unlet g:VimuxRunnerPaneIndex
84+
if exists("g:VimuxRunnerIndex")
85+
if _VimuxRunnerType() == "pane"
86+
call system("tmux resize-pane -Z -t ".g:VimuxRunnerIndex)
87+
elseif _VimuxRunnerType() == "window"
88+
call system("tmux select-window -t ".g:VimuxRunnerIndex)
89+
endif
8790
endif
8891
endfunction
8992

0 commit comments

Comments
 (0)