Start to add a test, but it's hitting deleting buffer that's in use [NULL]...

This commit is contained in:
Ben Jackson 2021-04-04 15:08:05 +01:00
commit e7fb49f03d
5 changed files with 71 additions and 17 deletions

View file

@ -145,9 +145,14 @@ augroup VimspectorUserAutoCmds
augroup END
" FIXME: Only register this _while_ debugging is active
let g:vimspector_resetting = 0
augroup Vimspector
autocmd!
autocmd BufNew * call vimspector#OnBufferCreated( expand( '<afile>' ) )
autocmd TabClosed *
\ if !g:vimspector_resetting
\ | call vimspector#internal#state#TabClosed()
\ | endif
augroup END
" boilerplate {{{