]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.2201: write file test fails on MS-Windows v8.2.2201
authorBram Moolenaar <Bram@vim.org>
Wed, 23 Dec 2020 19:55:15 +0000 (20:55 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 23 Dec 2020 19:55:15 +0000 (20:55 +0100)
Problem:    Write file test fails on MS-Windows.
Solution:   Force edit after setting 'fileformat'.

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

index f42ec14bb17168446fbdadcff9a476f8285dba61..92f19ce5adda033264ef4127f01bd01426250d5b 100644 (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
index e3fd6c1fe778028c762346d52704cde7bc864799..5cb700254db06f3795bfc59114e8bc43b4ba2dd8 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2201,
 /**/
     2200,
 /**/