From 9d91062d79c85f30cf359377913e002ecd16e15f Mon Sep 17 00:00:00 2001 From: "navid.sassan" Date: Fri, 14 Aug 2020 15:21:01 +0200 Subject: [PATCH] attach pane when there is none instead of error --- plugin/vim-tmux-runner.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/vim-tmux-runner.vim b/plugin/vim-tmux-runner.vim index f9b677e..1f9c6b4 100644 --- a/plugin/vim-tmux-runner.vim +++ b/plugin/vim-tmux-runner.vim @@ -43,8 +43,7 @@ endfunction function! s:ValidRunnerPaneSet() if !exists("s:runner_pane") - call s:EchoError("No runner pane attached.") - return 0 + call s:AttachToPane() endif if !s:ValidRunnerPaneNumber(s:runner_pane) call s:EchoError("Runner pane setting (" . s:runner_pane . ") is invalid. Please reattach.")