attach pane when there is none instead of error
This commit is contained in:
		
							parent
							
								
									1e8b1d5f7c
								
							
						
					
					
						commit
						9d91062d79
					
				| @ -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.") | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user