comparison src/testdir/test_fileformat.vim @ 19413:85e8bee2e3e2 v8.2.0264

patch 8.2.0264: fileformat test still fails on MS-Windows Commit: https://github.com/vim/vim/commit/a36c830a32f439b862ffb85d4c4b4799ee5ea2f9 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 16 15:08:28 2020 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Feb 2020 15:15:05 +0100
parents ba6afd154f91
children 08940efa6b4e
comparison
equal deleted inserted replaced
19412:c8a7af46e364 19413:85e8bee2e3e2
279 279
280 " Test for changing the fileformat using ++read 280 " Test for changing the fileformat using ++read
281 func Test_fileformat_plusplus_read() 281 func Test_fileformat_plusplus_read()
282 new 282 new
283 call setline(1, ['one', 'two', 'three']) 283 call setline(1, ['one', 'two', 'three'])
284 set ff=unix
285 w ++ff=dos Xfile1 284 w ++ff=dos Xfile1
286 enew! 285 enew!
286 set ff=unix
287 " A :read doesn't change the fileformat, but does apply to the read lines. 287 " A :read doesn't change the fileformat, but does apply to the read lines.
288 r ++fileformat=unix Xfile1 288 r ++fileformat=unix Xfile1
289 call assert_equal('unix', &fileformat) 289 call assert_equal('unix', &fileformat)
290 call assert_equal("three\r", getline('$')) 290 call assert_equal("three\r", getline('$'))
291 3r ++edit Xfile1 291 3r ++edit Xfile1