diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2015-11-11 04:27:50 +0100 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2015-11-15 15:10:02 +0100 |
commit | 9fcd444036e687a3c5c9aa75fa29b6251b3ad431 (patch) | |
tree | a13e600a19081542277cdeb35d1de186197d9a90 /test/functional/terminal/ex_terminal_spec.lua | |
parent | ac4db4b814dae6cd9004276d1330702663256491 (diff) | |
download | rneovim-9fcd444036e687a3c5c9aa75fa29b6251b3ad431.tar.gz rneovim-9fcd444036e687a3c5c9aa75fa29b6251b3ad431.tar.bz2 rneovim-9fcd444036e687a3c5c9aa75fa29b6251b3ad431.zip |
Add TermClose event
A terminal buffer now exits with: [Process exited <return value>]
You can hook into it. E.g. :au TermClose * call feedkeys('<cr>')
Closes #2293.
Diffstat (limited to 'test/functional/terminal/ex_terminal_spec.lua')
-rw-r--r-- | test/functional/terminal/ex_terminal_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/terminal/ex_terminal_spec.lua b/test/functional/terminal/ex_terminal_spec.lua index 3855cf4b65..611ba55793 100644 --- a/test/functional/terminal/ex_terminal_spec.lua +++ b/test/functional/terminal/ex_terminal_spec.lua @@ -22,7 +22,7 @@ describe(':terminal', function() wait() screen:expect([[ ready $ | - [Program exited, press any key to close] | + [Process exited 0] | | | | @@ -37,7 +37,7 @@ describe(':terminal', function() screen:expect([[ ready $ echo hi | | - [Program exited, press any key to close] | + [Process exited 0] | | | | @@ -51,7 +51,7 @@ describe(':terminal', function() screen:expect([[ ready $ echo 'hello' \ "world" | | - [Program exited, press any key to close] | + [Process exited 0] | | | | |