changeset 9808:0470742f7346 v7.4.2179

commit https://github.com/vim/vim/commit/e4a76ad0e74a31bbd9f1b1ac5b816d714d19a412 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 7 16:50:10 2016 +0200 patch 7.4.2179 Problem: Reading from stdin test fails on MS-Windows. Solution: Strip the extra space.
author Christian Brabandt <cb@256bit.org>
date Sun, 07 Aug 2016 17:00:05 +0200
parents c5a8f37bb077
children f08483937ffd
files src/testdir/test_startup.vim src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_startup.vim
+++ b/src/testdir/test_startup.vim
@@ -177,7 +177,8 @@ func Test_read_stdin()
 	\ ]
   if RunVimPiped([], after, '-', 'echo something | ')
     let lines = readfile('Xtestout')
-    call assert_equal('something', lines[0])
+    " MS-Windows adds a space after the word
+    call assert_equal(['something'], split(lines[0]))
   endif
   call delete('Xtestout')
 endfunc
--- a/src/version.c
+++ b/src/version.c
@@ -764,6 +764,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2179,
+/**/
     2178,
 /**/
     2177,