1
0
forked from aniani/vim

patch 9.0.0817

This commit is contained in:
Bram Moolenaar
2022-10-22 11:25:19 +01:00
parent 9c50eeb401
commit fb0cf2357e
10 changed files with 37 additions and 14 deletions

View File

@@ -1,17 +1,17 @@
" Tests for 'fixeol' and 'eol'
" Tests for 'fixeol', 'eof' and 'eol'
func Test_fixeol()
" first write two test files with and without trailing EOL
" use Unix fileformat for consistency
set ff=unix
enew!
call setline('.', 'with eol')
call setline('.', 'with eol or eof')
w! XXEol
enew!
set noeol nofixeol
call setline('.', 'without eol')
set noeof noeol nofixeol
call setline('.', 'without eol or eof')
w! XXNoEol
set eol fixeol
set eol eof fixeol
bwipe XXEol XXNoEol
" try editing files with 'fixeol' disabled
@@ -44,7 +44,7 @@ func Test_fixeol()
call delete('XXNoEol')
call delete('XXTestEol')
call delete('XXTestNoEol')
set ff& fixeol& eol&
set ff& fixeol& eof& eol&
enew!
endfunc