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
vim-patch:8.0.1119: quitting a split terminal window kills the job #10396
base: master
Are you sure you want to change the base?
Conversation
Affected test:
|
No. why? |
Problem: Quitting a split terminal window kills the job. (Yasuhiro Matsumoto) Solution: Only stop terminal job if it is the last window. vim/vim@8adb0d0
… is closed Missing part from vim-patch:8.0.0953.
This is missing 8.0.0953 --- a/src/buffer.c
+++ b/src/buffer.c
@@ -473,8 +473,8 @@ close_buffer(
{
if (term_job_running(buf->b_term))
{
-- if (wipe_buf)
-- /* Wiping out a terminal buffer kills the job. */
++ if (wipe_buf || unload_buf)
++ /* Wiping out or unloading a terminal buffer kills the job. */
free_terminal(buf);
else
{ |
I made a plugin, mostly motivated by working around this: https://github.com/jcorbin/neovim-termhide ; basically, for me at least, |
Problem: Quitting a split terminal window kills the job. (Yasuhiro
Matsumoto)
Solution: Only stop terminal job if it is the last window.
vim/vim@8adb0d0
The flow is a bit different there in nvim already, but this brings the code in line.
TODO:
Should/could we have
testdir/test_terminal.vim
in general to see/test that certain behavior is consistent with Vim?