Mercurial > vim
changeset 23312:4841385b981a v8.2.2201
patch 8.2.2201: write file test fails on MS-Windows
Commit: https://github.com/vim/vim/commit/bd318559cf8dea210e943100536011473f25bf68
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Dec 23 20:55:15 2020 +0100
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'.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 23 Dec 2020 21:00:04 +0100 |
parents | a1be8dd27aae |
children | 00317c8aea94 |
files | src/testdir/test_writefile.vim src/version.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_writefile.vim +++ b/src/testdir/test_writefile.vim @@ -683,7 +683,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 @@ -692,6 +692,8 @@ func Test_read_write_bin() call assert_equal(0z6E6F656F6C0A, readfile('XNoEolSetEol', 'B')) call delete('XNoEolSetEol') + set ff& + bwipe! XNoEolSetEol endfunc " vim: shiftwidth=2 sts=2 expandtab