patch 8.2.0262: fileformat test fails on MS-Windows
Problem: Fileformat test fails on MS-Windows.
Solution: Set fileformat of buffer.
diff --git a/src/testdir/test_fileformat.vim b/src/testdir/test_fileformat.vim
index efc5a0d..9f90deb 100644
--- a/src/testdir/test_fileformat.vim
+++ b/src/testdir/test_fileformat.vim
@@ -281,10 +281,13 @@
func Test_fileformat_plusplus_read()
new
call setline(1, ['one', 'two', 'three'])
+ set ff=unix
w ++ff=dos Xfile1
enew!
+ " A :read doesn't change the fileformat, but does apply to the read lines.
r ++fileformat=unix Xfile1
call assert_equal('unix', &fileformat)
+ call assert_equal("three\r", getline('$'))
3r ++edit Xfile1
call assert_equal('dos', &fileformat)
close!
diff --git a/src/version.c b/src/version.c
index ba8343d..95d4cd8 100644
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 262,
+/**/
261,
/**/
260,