Skip to content

Commit d6cb7f6

Browse files
authored
Support any valid target-pane string in VimuxRunnerIndex (#244)
1 parent 614f0bb commit d6cb7f6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

plugin/vimux.vim

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,12 @@ function! s:hasRunner() abort
361361
if get(g:, 'VimuxRunnerIndex', '') ==? ''
362362
return v:false
363363
endif
364-
let runnerType = VimuxOption('VimuxRunnerType')
365-
let l:command = 'list-'.runnerType."s -a -F '#{".runnerType."_id}'"
366-
let l:found = match(VimuxTmux(l:command), g:VimuxRunnerIndex.'\>')
367-
return l:found != -1
364+
try
365+
call VimuxTmux('send-keys -t '.g:VimuxRunnerIndex)
366+
return v:true
367+
catch
368+
return v:false
369+
endtry
368370
endfunction
369371

370372
function! s:autoclose() abort

0 commit comments

Comments
 (0)