vim-patch:8.0.0226

Problem:    The test for patch 8.0.0224 misses the CR characters and passes
            even without the fix. (Christian Brabandt)
Solution:   Use double quotes and \<CR>.

1695f99d08
This commit is contained in:
ckelsel
2017-11-10 23:28:58 +08:00
parent 7e8212c459
commit 67a2207c4a
2 changed files with 14 additions and 12 deletions

View File

@@ -17,14 +17,16 @@ func Test_fileformat_after_bw()
endfunc endfunc
func Test_fileformat_autocommand() func Test_fileformat_autocommand()
let filecnt=['', 'foobar', 'eins', '', 'zwei', 'drei', 'vier', 'fünf', ''] let filecnt = ["\<CR>", "foobar\<CR>", "eins\<CR>", "\<CR>", "zwei\<CR>", "drei", "vier", "fünf", ""]
let ffs = &ffs let ffs = &ffs
call writefile(filecnt, 'Xfile', 'b') call writefile(filecnt, 'Xfile', 'b')
au BufReadPre Xfile set ffs=dos ff=dos au BufReadPre Xfile set ffs=dos ff=dos
new Xfile new Xfile
call assert_equal('dos', &l:ff) call assert_equal('dos', &l:ff)
call assert_equal('dos', &ffs) call assert_equal('dos', &ffs)
" cleanup " cleanup
call delete('Xfile')
let &ffs = ffs let &ffs = ffs
au! BufReadPre Xfile au! BufReadPre Xfile
bw! bw!

View File

@@ -878,7 +878,7 @@ static const int included_patches[] = {
229, 229,
// 228, // 228,
// 227, // 227,
// 226, 226,
// 225, // 225,
224, 224,
223, 223,