Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions plugin/vimux.vim
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function! VimuxOpenRunner() abort
return
endif
let existingId = s:existingRunnerId()
if existingId !=# ''
if !exists('g:VimuxRunnerIndex') && existingId !=# ''
let g:VimuxRunnerIndex = existingId
else
let extraArguments = VimuxOption('VimuxOpenExtraArgs')
Expand Down Expand Up @@ -355,9 +355,8 @@ function! s:hasRunner() abort
if get(g:, 'VimuxRunnerIndex', '') ==? ''
return v:false
endif
let l:runnerType = VimuxOption('VimuxRunnerType')
let l:command = 'list-'.runnerType."s -F '#{".runnerType."_id}'"
let l:found = match(VimuxTmux(l:command), g:VimuxRunnerIndex)
let runnerType = VimuxOption('VimuxRunnerType')
let l:found = match(VimuxTmux('list-'.runnerType."s -a -F '#{".runnerType."_id}'"), g:VimuxRunnerIndex)
return l:found != -1
endfunction

Expand Down