1
0
forked from aniani/vim

patch 8.2.2201: write file test fails on MS-Windows

Problem:    Write file test fails on MS-Windows.
Solution:   Force edit after setting 'fileformat'.
This commit is contained in:
Bram Moolenaar
2020-12-23 20:55:15 +01:00
parent 27bf7af9d0
commit bd318559cf
2 changed files with 5 additions and 1 deletions

View File

@@ -683,7 +683,7 @@ func Test_read_write_bin()
" when file is read 'eol' is off
set ff=unix nofixeol
e XNoEolSetEol
e! XNoEolSetEol
call assert_equal(0, &eol)
" writing with 'eol' set adds the newline
@@ -692,6 +692,8 @@ func Test_read_write_bin()
call assert_equal(0z6E6F656F6C0A, readfile('XNoEolSetEol', 'B'))
call delete('XNoEolSetEol')
set ff&
bwipe! XNoEolSetEol
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2201,
/**/
2200,
/**/