diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-02-09 19:24:41 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-02-09 19:24:41 +0800 |
commit | 2863fac61f8855a4feea275079f01765c0017df1 (patch) | |
tree | bee82ac02236bad99efb88f00b7bf2b45c4d26e2 | |
parent | 47a98ab3941fbb664879f67aa0270a9f93d2bed4 (diff) | |
download | rneovim-2863fac61f8855a4feea275079f01765c0017df1.tar.gz rneovim-2863fac61f8855a4feea275079f01765c0017df1.tar.bz2 rneovim-2863fac61f8855a4feea275079f01765c0017df1.zip |
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'.
https://github.com/vim/vim/commit/bd318559cf8dea210e943100536011473f25bf68
-rw-r--r-- | src/nvim/testdir/test_writefile.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_writefile.vim b/src/nvim/testdir/test_writefile.vim index 18e6f5e211..18281cd52f 100644 --- a/src/nvim/testdir/test_writefile.vim +++ b/src/nvim/testdir/test_writefile.vim @@ -504,7 +504,7 @@ func Test_read_write_bin() " when file is read 'eol' is off set ff=unix nofixeol - e XNoEolSetEol + e! XNoEolSetEol call assert_equal(0, &eol) " writing with 'eol' set adds the newline @@ -513,6 +513,8 @@ func Test_read_write_bin() call assert_equal(0z6E6F656F6C0A, readfile('XNoEolSetEol', 'B')) call delete('XNoEolSetEol') + set ff& + bwipe! XNoEolSetEol endfunc " Check that buffer is written before triggering QuitPre |