mirror of
https://github.com/preservim/vimux
synced 2024-11-04 18:00:10 +00:00
Merge pull request #99 from justone/fix_zoom
update zoom to support pane or window
This commit is contained in:
commit
cae215041d
@ -81,9 +81,12 @@ function! VimuxCloseRunner()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! VimuxZoomRunner()
|
function! VimuxZoomRunner()
|
||||||
if exists("g:VimuxRunnerPaneIndex")
|
if exists("g:VimuxRunnerIndex")
|
||||||
call system("tmux resize-pane -Z -t ".g:VimuxRunnerPaneIndex)
|
if _VimuxRunnerType() == "pane"
|
||||||
unlet g:VimuxRunnerPaneIndex
|
call system("tmux resize-pane -Z -t ".g:VimuxRunnerIndex)
|
||||||
|
elseif _VimuxRunnerType() == "window"
|
||||||
|
call system("tmux select-window -t ".g:VimuxRunnerIndex)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user