-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
[RFC] Add TermClose event #3653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
terminal_close(data->term, | ||
_("\r\n[Program exited, press any key to close]")); | ||
char *msg = xmalloc(24); | ||
sprintf(msg, "[Process exited <%d>]", proc->status); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wish we had an asprintf()
wrapper... oh well.
edit: after trying this out, I don't think the angle brackets are needed; [Process exited 255]
is perfectly clear IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I did not mean to suggest literal brackets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh. Will fix. ;]
Vim_diff.txt is mostly for backward incompatible changes... |
1a34089
to
c32e3f6
Compare
@justinmk There is a section “new features” there. |
(Also you may consider this backward incompatible: pretend that there are scripts which parse the whole |
3afcd77
to
bb0311b
Compare
A terminal buffer now exits with: [Process exited <return value>] You can hook into it. E.g. :au TermClose * call feedkeys('<cr>') Closes neovim#2293.
4090f2e
to
2f2e57b
Compare
2f2e57b
to
ec847af
Compare
References #2293
A terminal buffer now exits with:
[Process exited <return value>]
.You can hook into it, e.g.
:autocmd TermClose * call feedkeys('<cr>')
.