]> granicus.if.org Git - vim/commitdiff
patch 7.4.2179 v7.4.2179
authorBram Moolenaar <Bram@vim.org>
Sun, 7 Aug 2016 14:50:10 +0000 (16:50 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 7 Aug 2016 14:50:10 +0000 (16:50 +0200)
Problem:    Reading from stdin test fails on MS-Windows.
Solution:   Strip the extra space.

src/testdir/test_startup.vim
src/version.c

index 652318fb7cb53e9f1c79b0f48cd71885310cb0d0..0522ecc82eb00170ae7b5f5e4f69b35df33db689 100644 (file)
@@ -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
index d87abe85cbaf57378f3c78fd6832e11ee8b10773..c9197f44a32215dc0592c92b386ad490cbfbd3b0 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2179,
 /**/
     2178,
 /**/