Mercurial > vim
comparison src/channel.c @ 9238:7d13d180a6ae v7.4.1902
commit https://github.com/vim/vim/commit/bbe8d91e695184771d7e45315258fab8eb3e6b07
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 5 16:10:57 2016 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 05 Jun 2016 16:15:05 +0200 |
parents | d2d44592467d |
children | 6ee88fa405b3 |
comparison
equal
deleted
inserted
replaced
9237:1c0fd34df5b3 | 9238:7d13d180a6ae |
---|---|
1655 n = n->rq_next; | 1655 n = n->rq_next; |
1656 STRCPY(p, n->rq_buffer); | 1656 STRCPY(p, n->rq_buffer); |
1657 p += n->rq_buflen; | 1657 p += n->rq_buflen; |
1658 vim_free(n->rq_buffer); | 1658 vim_free(n->rq_buffer); |
1659 } | 1659 } |
1660 node->rq_buflen = (long_u)(p - newbuf); | |
1660 | 1661 |
1661 /* dispose of the collapsed nodes and their buffers */ | 1662 /* dispose of the collapsed nodes and their buffers */ |
1662 for (n = node->rq_next; n != last_node; ) | 1663 for (n = node->rq_next; n != last_node; ) |
1663 { | 1664 { |
1664 n = n->rq_next; | 1665 n = n->rq_next; |