Allow ctrl-c to cancel when asked for a variable
This commit is contained in:
parent
47ace82364
commit
99b582378a
5 changed files with 91 additions and 49 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue