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.
This commit is contained in:
Marco Hinz
2015-11-11 04:27:50 +01:00
parent ac4db4b814
commit 9fcd444036
8 changed files with 20 additions and 9 deletions

View File

@@ -340,7 +340,7 @@ describe('terminal prints more lines than the screen height and exits', function
line8 |
line9 |
|
[Program exited, press any key to close] |
[Process exited 0] |
-- TERMINAL -- |
]])
feed('<cr>')