aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/functional/terminal/scrollback_spec.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/terminal/scrollback_spec.lua b/test/functional/terminal/scrollback_spec.lua
index f2381631a9..87cc9a8266 100644
--- a/test/functional/terminal/scrollback_spec.lua
+++ b/test/functional/terminal/scrollback_spec.lua
@@ -343,6 +343,17 @@ describe('terminal prints more lines than the screen height and exits', function
[Program exited, press any key to close] |
-- TERMINAL -- |
]])
+ feed('<cr>')
+ -- closes the buffer correctly after pressing a key
+ screen:expect([[
+ ^ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ |
+ ]])
end)
end)