Skip to content

Commit e4a76ad

Browse files
committed
patch 7.4.2179
Problem: Reading from stdin test fails on MS-Windows. Solution: Strip the extra space.
1 parent 3a93838 commit e4a76ad

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/testdir/test_startup.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ func Test_read_stdin()
177177
\ ]
178178
if RunVimPiped([], after, '-', 'echo something | ')
179179
let lines = readfile('Xtestout')
180-
call assert_equal('something', lines[0])
180+
" MS-Windows adds a space after the word
181+
call assert_equal(['something'], split(lines[0]))
181182
endif
182183
call delete('Xtestout')
183184
endfunc

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ static char *(features[]) =
763763

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2179,
766768
/**/
767769
2178,
768770
/**/

0 commit comments

Comments
 (0)