Add double-click to expand/collapse

This commit is contained in:
Ben Jackson 2020-09-27 13:13:21 +01:00
commit b2f41643f4
3 changed files with 16 additions and 9 deletions

View file

@ -40,7 +40,10 @@ class StackTraceView( object ):
utils.SetUpHiddenBuffer( self._buf, 'vimspector.StackTrace' )
utils.SetUpUIWindow( win )
vim.command( 'nnoremap <buffer> <CR> :call vimspector#GoToFrame()<CR>' )
vim.command( 'nnoremap <silent> <buffer> <CR> '
':<C-U>call vimspector#GoToFrame()<CR>' )
vim.command( 'nnoremap <silent> <buffer> <2-LeftMouse> '
':<C-U>call vimspector#GoToFrame()<CR>' )
self._line_to_frame = {}
self._line_to_thread = {}