diff options
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/terminal.c b/src/terminal.c index d4c605ed8..34316d843 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -382,6 +382,7 @@ term_close_buffer(buf_T *buf, buf_T *old_curbuf) curwin->w_buffer = curbuf; ++curbuf->b_nwindows; } + CHECK_CURBUF; // Wiping out the buffer will also close the window and call // free_terminal(). |