patch 8.2.0264: fileformat test still fails on MS-Windows
Problem: Fileformat test still fails on MS-Windows.
Solution: Set fileformat of buffer in the right place.
diff --git a/src/testdir/test_fileformat.vim b/src/testdir/test_fileformat.vim
index 9f90deb..efc3b22 100644
--- a/src/testdir/test_fileformat.vim
+++ b/src/testdir/test_fileformat.vim
@@ -281,9 +281,9 @@
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)