# HG changeset patch # User Christian Brabandt # Date 1465593305 -7200 # Node ID 78fc4c84476eabd102ab4e4b3a612d104575c48e # Parent 2d3262d0362c4cd8ba8813e2844152d7cb40c22b commit https://github.com/vim/vim/commit/b8aefa46adf5e825118716e142fab7ef32076475 Author: Bram Moolenaar Date: Fri Jun 10 23:02:56 2016 +0200 patch 7.4.1916 Problem: No proper test for what 7.4.1906 fixes. Solution: Add a test for reading many lines. diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -1335,6 +1335,20 @@ func Test_using_freed_memory() call test_garbagecollect_now() endfunc +func Test_collapse_buffers() + if !executable('cat') + return + endif + sp test_channel.vim + let g:linecount = line('$') + close + split testout + 1,$delete + call job_start('cat test_channel.vim', {'out_io': 'buffer', 'out_name': 'testout'}) + call s:waitFor('line("$") > g:linecount') + call assert_true(line('$') > g:linecount) + bwipe! +endfunc " Uncomment this to see what happens, output is in src/testdir/channellog. diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1916, +/**/ 1915, /**/ 1914,