changeset 9266:78fc4c84476e v7.4.1916

commit https://github.com/vim/vim/commit/b8aefa46adf5e825118716e142fab7ef32076475 Author: Bram Moolenaar <Bram@vim.org> 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.
author Christian Brabandt <cb@256bit.org>
date Fri, 10 Jun 2016 23:15:05 +0200
parents 2d3262d0362c
children e4eff2323d2e
files src/testdir/test_channel.vim src/version.c
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- 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,