mirror of
https://github.com/vim/vim.git
synced 2025-11-15 23:14:06 -05:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user