there is no need to execute feedkeys inside a popup context, since keys are added into the global input buffer

This commit is contained in:
dsych 2021-01-15 08:50:39 -05:00 committed by Ben Jackson
commit 0c79384529

View file

@ -623,10 +623,8 @@ function! Test_VariableEval()
\ } )
" Expand
call win_execute( g:vimspector_session_windows.eval, [
\ 'call feedkeys( ''jjjj'', ''xt'' )',
\ 'call feedkeys( "\<CR>", ''xt'' )'
\ ] )
call feedkeys( 'jjjj', 'xt' )
call feedkeys( "\<CR>", 'xt' )
call WaitForAssert( {->
\ AssertMatchist(
@ -646,11 +644,9 @@ function! Test_VariableEval()
\ } )
"Close
call win_execute( g:vimspector_session_windows.eval, 'call feedkeys( "\<Esc>", ''xt'')')
call feedkeys( "\<Esc>", 'xt' )
call WaitForAssert( {->
\ assert_equal( 0, g:vimspector_session_windows.eval )
\ } )
call assert_equal( v:none, g:vimspector_session_windows.eval )
call vimspector#test#setup#Reset()
%bwipe!