Allow VimspectorShowOutput with no argument

This commit is contained in:
Ben Jackson 2020-07-27 22:49:13 +01:00
commit d86b42bf5b
2 changed files with 7 additions and 3 deletions

View file

@ -188,11 +188,15 @@ function! vimspector#EvaluateConsole( expr ) abort
py3 _vimspector_session.EvaluateConsole( vim.eval( 'a:expr' ) )
endfunction
function! vimspector#ShowOutput( category ) abort
function! vimspector#ShowOutput( ... ) abort
if !s:enabled
return
endif
py3 _vimspector_session.ShowOutput( vim.eval( 'a:category' ) )
if a:0 == 1
py3 _vimspector_session.ShowOutput( vim.eval( 'a:1' ) )
else
py3 _vimspector_session.ShowOutput( 'Console' )
endif
endfunction
function! vimspector#ShowOutputInWindow( win_id, category ) abort