mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
vim-patch:8.2.2201: write file test fails on MS-Windows
Problem: Write file test fails on MS-Windows.
Solution: Force edit after setting 'fileformat'.
bd318559cf
This commit is contained in:
@@ -504,7 +504,7 @@ func Test_read_write_bin()
|
|||||||
|
|
||||||
" when file is read 'eol' is off
|
" when file is read 'eol' is off
|
||||||
set ff=unix nofixeol
|
set ff=unix nofixeol
|
||||||
e XNoEolSetEol
|
e! XNoEolSetEol
|
||||||
call assert_equal(0, &eol)
|
call assert_equal(0, &eol)
|
||||||
|
|
||||||
" writing with 'eol' set adds the newline
|
" writing with 'eol' set adds the newline
|
||||||
@@ -513,6 +513,8 @@ func Test_read_write_bin()
|
|||||||
call assert_equal(0z6E6F656F6C0A, readfile('XNoEolSetEol', 'B'))
|
call assert_equal(0z6E6F656F6C0A, readfile('XNoEolSetEol', 'B'))
|
||||||
|
|
||||||
call delete('XNoEolSetEol')
|
call delete('XNoEolSetEol')
|
||||||
|
set ff&
|
||||||
|
bwipe! XNoEolSetEol
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" Check that buffer is written before triggering QuitPre
|
" Check that buffer is written before triggering QuitPre
|
||||||
|
Reference in New Issue
Block a user