commit | bbe8d91e695184771d7e45315258fab8eb3e6b07 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jun 05 16:10:57 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jun 05 16:10:57 2016 +0200 |
tree | 8e28c096028bb762529910c9bbf5203318945134 | |
parent | 762f1754370a1278167c8cba6c047ef319fc099c [diff] [blame] |
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; )