Skip to content

Commit

Permalink
fixup! WIP: part of patch 8.0.0838: buffer hangs around whem terminal…
Browse files Browse the repository at this point in the history
… window is closed
  • Loading branch information
blueyed committed Jul 3, 2019
1 parent cab9b30 commit 7621928
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/nvim/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,18 +433,10 @@ void close_buffer(win_T *win, buf_T *buf, int action, int abort_if_last)
}

if (buf->terminal && (buf->b_nwindows == 1 || del_buf)) {
if(channel_job_running((uint64_t)buf->b_p_channel)) {
if (wipe_buf || unload_buf) {
// TODO
/* if (!can_unload_buffer(buf)) */
return;
}
} else {
// A terminal buffer is wiped out if the job has finished.
del_buf = true;
unload_buf = true;
wipe_buf = true;
}
// terminal buffers can only be wiped
del_buf = true;
unload_buf = true;
wipe_buf = true;
}

// Disallow deleting the buffer when it is locked (already being closed or
Expand Down

0 comments on commit 7621928

Please sign in to comment.