0
0
mirror of https://github.com/vim/vim.git synced 2025-11-16 23:24:03 -05:00

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.
This commit is contained in:
Bram Moolenaar
2016-06-05 16:10:57 +02:00
parent 762f175437
commit bbe8d91e69
4 changed files with 16 additions and 0 deletions

View File

@@ -1657,6 +1657,7 @@ channel_collapse(channel_T *channel, int part, int want_nl)
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; )