comparison src/testdir/test_startup.vim @ 24938:ac0211a9fb6a v8.2.3006

patch 8.2.3006: crash when echoing a value very early Commit: https://github.com/vim/vim/commit/a97c36310f90ed15dbf5a2ba5bf91fc906e2e724 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 15 22:39:11 2021 +0200 patch 8.2.3006: crash when echoing a value very early Problem: Crash when echoing a value very early. (Naruhiko Nishino) Solution: Do not use a NUL to truncate the message, make a copy. (closes #8388)
author Bram Moolenaar <Bram@vim.org>
date Tue, 15 Jun 2021 22:45:04 +0200
parents 9b5374b80b02
children 6dc1be6040d1
comparison
equal deleted inserted replaced
24937:a9c25ee5404b 24938:ac0211a9fb6a
1299 call delete('Xtestout') 1299 call delete('Xtestout')
1300 endif 1300 endif
1301 call delete('Xvimrc') 1301 call delete('Xvimrc')
1302 endfunc 1302 endfunc
1303 1303
1304 func Test_echo_true_in_cmd()
1305 let lines =<< trim END
1306 echo v:true
1307 call writefile(['done'], 'Xresult')
1308 END
1309 call writefile(lines, 'Xscript')
1310 if RunVim([], [], '--cmd "source Xscript" --c q')
1311 call assert_equal(['done'], readfile('Xresult'))
1312 endif
1313 call delete('Xscript')
1314 call delete('Xresult')
1315
1316 endfunc
1317
1304 " vim: shiftwidth=2 sts=2 expandtab 1318 " vim: shiftwidth=2 sts=2 expandtab