mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test: FocusGained: let UI settle before sending input
This significantly increases the likelihood that the :echo'd text will be included in the next UI flush, instead of being lost.
This commit is contained in:
parent
8716994cf0
commit
ff32bacb2e
@ -320,6 +320,7 @@ describe('tui FocusGained/FocusLost', function()
|
|||||||
|
|
||||||
retry(2, 3 * screen.timeout, function()
|
retry(2, 3 * screen.timeout, function()
|
||||||
feed_data(':terminal\n')
|
feed_data(':terminal\n')
|
||||||
|
screen:sleep(10)
|
||||||
feed_data('\027[I')
|
feed_data('\027[I')
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
{1:r}eady $ |
|
{1:r}eady $ |
|
||||||
|
Loading…
Reference in New Issue
Block a user