Send an event before leave buffer in window

This commit is contained in:
__ 2021-02-06 14:48:39 +01:00 committed by Ben Jackson
commit 840ee09242
3 changed files with 11 additions and 5 deletions

View file

@ -410,16 +410,16 @@ function! Test_CustomWinBar()
%bwipe!
endfunction
function! Test_VimspectorFrameWasSet()
augroup TestVimspectorFrameWasSet
function! Test_VimspectorFrameEnter()
augroup TestVimspectorFrameEnter
au!
au User VimspectorFrameWasSet let b:vimspectorStepIsThere = 'foo'
au User VimspectorFrameEnter let b:vimspectorStepIsThere = 'foo'
augroup END
call s:StartDebugging()
call assert_equal( 'foo', getbufvar(bufnr(), 'vimspectorStepIsThere', 0) )
au! TestVimspectorFrameWasSet
au! TestVimspectorFrameEnter
unlet b:vimspectorStepIsThere
call vimspector#test#setup#Reset()
%bwipe!