diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-11-24 19:36:16 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-11-24 19:36:16 +0100 |
commit | c9f8b849b6de9661e543d0d1431e233725dd956f (patch) | |
tree | f0471ebdbb83dc7055fbaed72bc0f71319d1a0e0 /src/buffer.c | |
parent | 8e6be34338f13a6a625f19bcef82019c9adc65f2 (diff) | |
download | vim-git-c9f8b849b6de9661e543d0d1431e233725dd956f.tar.gz |
patch 8.2.2040: terminal buffer disappears even when 'bufhidden' is "hide"v8.2.2040
Problem: Terminal buffer disappears even when 'bufhidden' is "hide".
(Sergey Vlasov)
Solution: Check 'bufhiddden' when a terminal buffer becomes hidden.
(closes #7358)
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index a4c6a00b5..8497bcf3a 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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. |