mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
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:
@@ -17,15 +17,17 @@ func Test_fileformat_after_bw()
|
||||
endfunc
|
||||
|
||||
func Test_fileformat_autocommand()
|
||||
let filecnt=['', 'foobar', 'eins', '', 'zwei', 'drei', 'vier', 'fünf', '']
|
||||
let ffs=&ffs
|
||||
call writefile(filecnt, 'Xfile', 'b')
|
||||
au BufReadPre Xfile set ffs=dos ff=dos
|
||||
new Xfile
|
||||
call assert_equal('dos', &l:ff)
|
||||
call assert_equal('dos', &ffs)
|
||||
" cleanup
|
||||
let &ffs=ffs
|
||||
au! BufReadPre Xfile
|
||||
bw!
|
||||
let filecnt = ["\<CR>", "foobar\<CR>", "eins\<CR>", "\<CR>", "zwei\<CR>", "drei", "vier", "fünf", ""]
|
||||
let ffs = &ffs
|
||||
call writefile(filecnt, 'Xfile', 'b')
|
||||
au BufReadPre Xfile set ffs=dos ff=dos
|
||||
new Xfile
|
||||
call assert_equal('dos', &l:ff)
|
||||
call assert_equal('dos', &ffs)
|
||||
|
||||
" cleanup
|
||||
call delete('Xfile')
|
||||
let &ffs = ffs
|
||||
au! BufReadPre Xfile
|
||||
bw!
|
||||
endfunc
|
||||
|
@@ -878,7 +878,7 @@ static const int included_patches[] = {
|
||||
229,
|
||||
// 228,
|
||||
// 227,
|
||||
// 226,
|
||||
226,
|
||||
// 225,
|
||||
224,
|
||||
223,
|
||||
|
Reference in New Issue
Block a user