|
|
@ -242,12 +242,17 @@ function! s:existingRunnerId() abort
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
" Try finding the runner using the provided query
|
|
|
|
" Try finding the runner using the provided query
|
|
|
|
|
|
|
|
let currentId = s:tmuxIndex()
|
|
|
|
let message = VimuxTmux('select-'.runnerType.' -t '.query.'')
|
|
|
|
let message = VimuxTmux('select-'.runnerType.' -t '.query.'')
|
|
|
|
if message ==# ''
|
|
|
|
if message ==# ''
|
|
|
|
" Success!
|
|
|
|
" A match was found. Make sure it isn't the current vim pane/window
|
|
|
|
|
|
|
|
" though!
|
|
|
|
let runnerId = s:tmuxIndex()
|
|
|
|
let runnerId = s:tmuxIndex()
|
|
|
|
call VimuxTmux('last-'.runnerType)
|
|
|
|
if runnerId !=# currentId
|
|
|
|
return runnerId
|
|
|
|
" Success!
|
|
|
|
|
|
|
|
call VimuxTmux('last-'.runnerType)
|
|
|
|
|
|
|
|
return runnerId
|
|
|
|
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
return ''
|
|
|
|
return ''
|
|
|
|
endfunction
|
|
|
|
endfunction
|
|
|
|