comparison src/testdir/test_fileformat.vim @ 10268:c55a7232fb48 v8.0.0031

commit https://github.com/vim/vim/commit/e8ef3a093453b73594e15462d4de50b011c8ba66 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 12 17:45:29 2016 +0200 patch 8.0.0031 Problem: After ":bwipeout" 'fileformat' is not set to the right default. Solution: Get the default from 'fileformats'. (Mike Williams)
author Christian Brabandt <cb@256bit.org>
date Wed, 12 Oct 2016 18:00:04 +0200
parents
children 6a252c6afd5b
comparison
equal deleted inserted replaced
10267:8f43f94af8fb 10268:c55a7232fb48
1 " Test behavior of fileformat after bwipeout of last buffer
2
3 func Test_fileformat_after_bw()
4 bwipeout
5 set fileformat&
6 if &fileformat == 'dos'
7 let test_fileformats = 'unix'
8 elseif &fileformat == 'unix'
9 let test_fileformats = 'mac'
10 else " must be mac
11 let test_fileformats = 'dos'
12 endif
13 exec 'set fileformats='.test_fileformats
14 bwipeout!
15 call assert_equal(test_fileformats, &fileformat)
16 set fileformats&
17 endfunc