]> granicus.if.org Git - vim/commitdiff
patch 8.2.0264: fileformat test still fails on MS-Windows v8.2.0264
authorBram Moolenaar <Bram@vim.org>
Sun, 16 Feb 2020 14:08:28 +0000 (15:08 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 16 Feb 2020 14:08:28 +0000 (15:08 +0100)
Problem:    Fileformat test still fails on MS-Windows.
Solution:   Set fileformat of buffer in the right place.

src/testdir/test_fileformat.vim
src/version.c

index 9f90debd7ffd67c351f37684f5cc656351557ac9..efc3b2252e216fedf7ce72f25754d7d6334f5645 100644 (file)
@@ -281,9 +281,9 @@ endfunc
 func Test_fileformat_plusplus_read()
   new
   call setline(1, ['one', 'two', 'three'])
-  set ff=unix
   w ++ff=dos Xfile1
   enew!
+  set ff=unix
   " A :read doesn't change the fileformat, but does apply to the read lines.
   r ++fileformat=unix Xfile1
   call assert_equal('unix', &fileformat)
index 780330ca278299ef2510dd3eb148e18bb557a9d3..dc849eb45e72a6080b45f4a66e8755dc22dbc073 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    264,
 /**/
     263,
 /**/