To: vim_dev@googlegroups.com Subject: Patch 7.4.1829 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1829 (after 7.4.1828) Problem: No message on channel log when buffer was freed. Solution: Log a message. Files: src/channel.c *** ../vim-7.4.1828/src/channel.c 2016-05-09 20:38:48.580112142 +0200 --- src/channel.c 2016-05-09 20:47:58.337874544 +0200 *************** *** 63,68 **** --- 63,70 ---- * 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,1428 **** --- 1424,1434 ---- 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; + } } } *** ../vim-7.4.1828/src/version.c 2016-05-09 20:38:48.580112142 +0200 --- src/version.c 2016-05-09 20:50:48.471943264 +0200 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 1829, /**/ -- SOLDIER: Where did you get the coconuts? ARTHUR: Through ... We found them. SOLDIER: Found them? In Mercea. The coconut's tropical! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///