Fix filtering VimspectorShowOutput

This commit is contained in:
Ben Jackson 2020-01-09 22:36:30 +00:00
commit c898eb47b2
2 changed files with 3 additions and 2 deletions

View file

@ -116,7 +116,8 @@ function! vimspector#ListBreakpoints() abort
endfunction
function! vimspector#CompleteOutput( ArgLead, CmdLine, CursorPos ) abort
return py3eval( '_vimspector_session.GetOutputBuffers()' )
let buffers = py3eval( '_vimspector_session.GetOutputBuffers()' )
return join( buffers, "\n" )
endfunction
function! vimspector#CompleteExpr( ArgLead, CmdLine, CursorPos ) abort

View file

@ -74,7 +74,7 @@ endif
command! -bar -nargs=1 -complete=customlist,vimspector#CompleteExpr
\ VimspectorWatch
\ call vimspector#AddWatch( <f-args> )
command! -bar -nargs=1 -complete=customlist,vimspector#CompleteOutput
command! -bar -nargs=1 -complete=custom,vimspector#CompleteOutput
\ VimspectorShowOutput
\ call vimspector#ShowOutput( <f-args> )
command! -bar -nargs=1 -complete=customlist,vimspector#CompleteExpr