mirror of
https://github.com/wellle/tmux-complete.vim.git
synced 2026-05-26 11:24:33 +02:00
Return matches as list instead of complete_add
This commit is contained in:
@@ -19,10 +19,7 @@ function! tmuxcomplete#complete(findstart, base)
|
||||
|
||||
" find words matching with "a:base"
|
||||
let capture_args = get(g:, 'tmux_complete_capture_args', '-J')
|
||||
for completion in tmuxcomplete#completions(a:base, capture_args)
|
||||
call complete_add(completion)
|
||||
endfor
|
||||
return []
|
||||
return tmuxcomplete#completions(a:base, capture_args)
|
||||
endfun
|
||||
|
||||
function! CompleteScript(findstart, base)
|
||||
|
||||
Reference in New Issue
Block a user