1
0
forked from aniani/vim

patch 8.2.2040: terminal buffer disappears even when 'bufhidden' is "hide"

Problem:    Terminal buffer disappears even when 'bufhidden' is "hide".
            (Sergey Vlasov)
Solution:   Check 'bufhiddden' when a terminal buffer becomes hidden.
            (closes #7358)
This commit is contained in:
Bram Moolenaar
2020-11-24 19:36:16 +01:00
parent 8e6be34338
commit c9f8b849b6
3 changed files with 27 additions and 1 deletions

View File

@@ -552,6 +552,11 @@ close_buffer(
unload_buf = FALSE;
}
}
else if (buf->b_p_bh[0] == 'h' && !del_buf)
{
// Hide a terminal buffer.
unload_buf = FALSE;
}
else
{
// A terminal buffer is wiped out if the job has finished.