]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.2202: write file test still fails on MS-Windows v8.2.2202
authorBram Moolenaar <Bram@vim.org>
Wed, 23 Dec 2020 21:40:11 +0000 (22:40 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 23 Dec 2020 21:40:11 +0000 (22:40 +0100)
Problem:    Write file test still fails on MS-Windows.
Solution:   Set fileformat with the :edit command

src/testdir/test_writefile.vim
src/version.c

index 92f19ce5adda033264ef4127f01bd01426250d5b..07beb64e64edd070a288da12d2e369f907882fde 100644 (file)
@@ -682,8 +682,8 @@ func Test_read_write_bin()
   call assert_equal(0z6E6F656F6C, readfile('XNoEolSetEol', 'B'))
 
   " when file is read 'eol' is off
-  set ff=unix nofixeol
-  e! XNoEolSetEol
+  set nofixeol
+  e! ++ff=unix XNoEolSetEol
   call assert_equal(0, &eol)
 
   " writing with 'eol' set adds the newline
index 5cb700254db06f3795bfc59114e8bc43b4ba2dd8..b6fb5930b296f984386ea177bfe24c468011ba9f 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2202,
 /**/
     2201,
 /**/