forked from aniani/vim
patch 7.4.2179
Problem: Reading from stdin test fails on MS-Windows. Solution: Strip the extra space.
This commit is contained in:
@@ -177,7 +177,8 @@ func Test_read_stdin()
|
|||||||
\ ]
|
\ ]
|
||||||
if RunVimPiped([], after, '-', 'echo something | ')
|
if RunVimPiped([], after, '-', 'echo something | ')
|
||||||
let lines = readfile('Xtestout')
|
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
|
endif
|
||||||
call delete('Xtestout')
|
call delete('Xtestout')
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -763,6 +763,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2179,
|
||||||
/**/
|
/**/
|
||||||
2178,
|
2178,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user