Enter copy-mode on zoom

This commit is contained in:
Chris Toomey 2014-07-27 19:26:13 -04:00
parent fb486dcfed
commit 0c571bc5ca

View File

@ -129,8 +129,10 @@ endfunction
function! s:ZoomRunnerPane() function! s:ZoomRunnerPane()
call s:EnsureRunnerPane() call s:EnsureRunnerPane()
let targeted_cmd = s:TargetedTmuxCommand("resize-pane -Z", s:runner_pane) let copy_mode_cmd = s:TargetedTmuxCommand("copy-mode", s:runner_pane)
call s:SendTmuxCommand(targeted_cmd) let resize_cmd = s:TargetedTmuxCommand("resize-pane -Z", s:runner_pane)
call s:SendTmuxCommand(copy_mode_cmd)
call s:SendTmuxCommand(resize_cmd)
endfunction endfunction
function! s:SendTmuxCommand(command) function! s:SendTmuxCommand(command)