comparison src/testdir/test_options.vim @ 31055:5a95f0c630b1 v9.0.0862

patch 9.0.0862: default value of 'endoffile' is wrong Commit: https://github.com/vim/vim/commit/0aad88f073602849d1623122eb3c323f8e252def Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 12 11:54:26 2022 +0000 patch 9.0.0862: default value of 'endoffile' is wrong Problem: Default value of 'endoffile' is wrong. Solution: The default must be 'noendoffile'.
author Bram Moolenaar <Bram@vim.org>
date Sat, 12 Nov 2022 13:00:05 +0100
parents 360f286b5869
children b0717fcca5eb
comparison
equal deleted inserted replaced
31054:a0f0c144baff 31055:5a95f0c630b1
1451 call assert_equal('man', &keywordprg) 1451 call assert_equal('man', &keywordprg)
1452 call assert_equal("\n keywordprg=:help", execute('set kp= kp?')) 1452 call assert_equal("\n keywordprg=:help", execute('set kp= kp?'))
1453 let &keywordprg = k 1453 let &keywordprg = k
1454 endfunc 1454 endfunc
1455 1455
1456 " check that the very first buffer created does not have 'endoffile' set
1457 func Test_endoffile_default()
1458 let after =<< trim [CODE]
1459 call writefile([execute('set eof?')], 'Xtestout')
1460 qall!
1461 [CODE]
1462 if RunVim([], after, '')
1463 call assert_equal(["\nnoendoffile"], readfile('Xtestout'))
1464 endif
1465 call delete('Xtestout')
1466 endfunc
1467
1456 1468
1457 " vim: shiftwidth=2 sts=2 expandtab 1469 " vim: shiftwidth=2 sts=2 expandtab