Allow VimspectorShowOutput with no argument
This commit is contained in:
parent
10e9a75fc7
commit
d86b42bf5b
2 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue