summaryrefslogtreecommitdiff
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-06-05 16:10:57 +0200
committerBram Moolenaar <Bram@vim.org>2016-06-05 16:10:57 +0200
commitbbe8d91e695184771d7e45315258fab8eb3e6b07 (patch)
tree8e28c096028bb762529910c9bbf5203318945134 /src/channel.c
parent762f1754370a1278167c8cba6c047ef319fc099c (diff)
downloadvim-git-bbe8d91e695184771d7e45315258fab8eb3e6b07.tar.gz
patch 7.4.1902v7.4.1902
Problem: No test for collapsing buffers for a channel. Some text is lost. Solution: Add a simple test. Set rq_buflen correctly.
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c
index ae894704c..e60d49e4c 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -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; )