Ensure valid runner pane setting before killing
Closes #44 - Prevent killing vim pane
This commit is contained in:
parent
745a54b0a7
commit
d6a0abcb26
@ -70,9 +70,7 @@ function! s:RequireLocalPaneOrDetached()
|
||||
endfunction
|
||||
|
||||
function! s:KillLocalRunner()
|
||||
if s:runner_pane == s:ActivePaneIndex()
|
||||
call s:EchoError("RunnerPane is set to current pane. Cancelling")
|
||||
else
|
||||
if s:ValidRunnerPaneSet()
|
||||
let targeted_cmd = s:TargetedTmuxCommand("kill-pane", s:runner_pane)
|
||||
call s:SendTmuxCommand(targeted_cmd)
|
||||
unlet s:runner_pane
|
||||
|
Loading…
x
Reference in New Issue
Block a user