Allow ctrl-c to cancel when asked for a variable

This commit is contained in:
Ben Jackson 2020-07-18 14:39:54 +01:00
commit 99b582378a
5 changed files with 91 additions and 49 deletions

View file

@ -137,14 +137,16 @@ function! vimspector#ListBreakpoints() abort
endfunction
function! vimspector#CompleteOutput( ArgLead, CmdLine, CursorPos ) abort
let buffers = py3eval( '_vimspector_session.GetOutputBuffers()' )
let buffers = py3eval( '_vimspector_session.GetOutputBuffers() '
\ . ' if _vimspector_session else []' )
return join( buffers, "\n" )
endfunction
function! vimspector#CompleteExpr( ArgLead, CmdLine, CursorPos ) abort
return join( py3eval( '_vimspector_session.GetCompletionsSync( '
\.' vim.eval( "a:CmdLine" ),'
\.' int( vim.eval( "a:CursorPos" ) ) )' ),
\.' int( vim.eval( "a:CursorPos" ) ) )'
\. ' if _vimspector_session else []' ),
\ "\n" )
endfunction