Mercurial > vim
changeset 9089:6bc0a492e8ba v7.4.1829
commit https://github.com/vim/vim/commit/de7eb0a47b557eb4656c6b63d421c7e7bae1ef30
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon May 9 20:54:33 2016 +0200
patch 7.4.1829
Problem: No message on channel log when buffer was freed.
Solution: Log a message.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 09 May 2016 21:00:05 +0200 |
parents | 123e39cec289 |
children | e8f493d9539d |
files | src/channel.c src/version.c |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; + } } }