patch 7.4.1902
Problem:    No test for collapsing buffers for a channel.  Some text is lost.
Solution:   Add a simple test.  Set rq_buflen correctly.
diff --git a/src/channel.c b/src/channel.c
index ae89470..e60d49e 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -1657,6 +1657,7 @@
 	p += n->rq_buflen;
 	vim_free(n->rq_buffer);
     }
+    node->rq_buflen = (long_u)(p - newbuf);
 
     /* dispose of the collapsed nodes and their buffers */
     for (n = node->rq_next; n != last_node; )