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:
@@ -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; )
|
||||
|
||||
Reference in New Issue
Block a user