]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 7.4.1829 v7.4.1829
authorBram Moolenaar <Bram@vim.org>
Mon, 9 May 2016 18:54:33 +0000 (20:54 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 9 May 2016 18:54:33 +0000 (20:54 +0200)
Problem:    No message on channel log when buffer was freed.
Solution:   Log a message.

src/channel.c
src/version.c

index c191c2a0ffbeef9385cb3d2cac776a3c2c4c724b..aca31a265db8921c8f11717207b55500d2ec10dd 100644 (file)
@@ -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;
+           }
        }
 }
 
index fb3b3d48b9fd9526dec89cb5ff10f89b9d44d812..42bb0798248293063d19d4ff4f148a1c6b9788ff 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1829,
 /**/
     1828,
 /**/