diff options
Diffstat (limited to 'src/channel.c')
-rw-r--r-- | src/channel.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c index b46205e675..7514d63855 100644 --- a/src/channel.c +++ b/src/channel.c @@ -3156,6 +3156,10 @@ channel_close(channel_T *channel, int invoke_close_cb) { ch_part_T part; +#ifdef FEAT_TERMINAL + // let the terminal know it is closing to avoid getting stuck + term_channel_closing(channel); +#endif // Invoke callbacks and flush buffers before the close callback. if (channel->ch_close_cb.cb_name != NULL) ch_log(channel, |