tests/ui: remove unnecessary screen:detach()

It is perfectly fine and expected to detach from the screen just by
the UI disconnecting from nvim or exiting nvim. Just keep detach() in
screen_basic_spec, to get some coverage of the detach method itself.

This avoids hang on failure in many situations (though one could argue
that detach() should be "fast", or at least "as fast as resize",
which works in press-return already).

Never use detach() just to change the size of the screen, try_resize()
method exists for that specifically.
This commit is contained in:
Björn Linse
2019-10-13 20:18:22 +02:00
parent a330129a28
commit 4987311fb5
28 changed files with 14 additions and 171 deletions

View File

@@ -144,7 +144,6 @@ describe('eval-API', function()
{5:~ }|
|
]])
screen:detach()
end)
it('cannot be called from sandbox', function()