diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-05-09 20:54:33 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-05-09 20:54:33 +0200 |
commit | de7eb0a47b557eb4656c6b63d421c7e7bae1ef30 (patch) | |
tree | 8225d920c2bdfb24961c8f20cc451a0ebef63d92 /src/channel.c | |
parent | e0f76d00979c972329f6c371463a20da61ccad65 (diff) |
patch 7.4.1829v7.4.1829
Problem: No message on channel log when buffer was freed.
Solution: Log a message.
Diffstat (limited to 'src/channel.c')
-rw-r--r-- | src/channel.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c index c191c2a0ff..aca31a265d 100644 --- a/src/channel.c +++ b/src/channel.c @@ -63,6 +63,8 @@ static int channel_need_redraw = FALSE; * is safe to invoke callbacks. */ static int safe_to_invoke_callback = 0; +static char *part_names[] = {"sock", "out", "err", "in"}; + #ifdef WIN32 static int fd_read(sock_T fd, char *buf, size_t len) @@ -1422,7 +1424,11 @@ channel_buffer_free(buf_T *buf) chanpart_T *ch_part = &channel->ch_part[part]; if (ch_part->ch_buffer == buf) + { + ch_logs(channel, "%s buffer has been wiped out", + part_names[part]); ch_part->ch_buffer = NULL; + } } } |