From 745a54b0a73f4a036a6c3ee9387e5bfbc9d661f6 Mon Sep 17 00:00:00 2001 From: Chris Toomey Date: Mon, 5 Jan 2015 22:02:38 -0500 Subject: [PATCH] Fix undefined vim_pane when reorienting Closes #43 - Error related to s:vim_pane on VtrReorient --- plugin/vim-tmux-runner.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/vim-tmux-runner.vim b/plugin/vim-tmux-runner.vim index 07fc7a5..e385fe6 100644 --- a/plugin/vim-tmux-runner.vim +++ b/plugin/vim-tmux-runner.vim @@ -184,8 +184,8 @@ function! s:BreakRunnerPaneToTempWindow() let full_command = join([targeted_cmd, "-d"]) call s:SendTmuxCommand(full_command) let s:detached_window = s:LastWindowNumber() + let s:vim_pane = s:ActivePaneIndex() unlet s:runner_pane - unlet s:vim_pane endfunction function! s:RunnerDimensionSpec() @@ -289,7 +289,7 @@ endfunction function! s:ReorientRunner() if !s:ValidRunnerPaneSet() | return | endif - let temp_window = s:BreakRunnerPaneToTempWindow() + call s:BreakRunnerPaneToTempWindow() call s:ToggleOrientationVariable() call s:_ReattachPane() call s:FocusVimPane()