diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-05 21:40:44 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-05 21:40:44 +0100 |
commit | 3411265a3698c3d5ef56d9b0c3bb237a9f5fdba1 (patch) | |
tree | ea61985ac705ed5c645a935608cbc84cd918636f /src/testdir/test_bufline.vim | |
parent | 86d87256c4005c6215da5af2597fbf6f6304421f (diff) |
patch 9.0.0391: using separate delete() call instead of writefile() 'D' flagv9.0.0391
Problem: Using separate delete() call instead of writefile() 'D' flag.
Solution: Use the writefile 'D' flag.
Diffstat (limited to 'src/testdir/test_bufline.vim')
-rw-r--r-- | src/testdir/test_bufline.vim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/testdir/test_bufline.vim b/src/testdir/test_bufline.vim index caf6aa7d30..f3502a3d41 100644 --- a/src/testdir/test_bufline.vim +++ b/src/testdir/test_bufline.vim @@ -81,11 +81,10 @@ func Test_setline_startup() if cmd == '' return endif - call writefile(['call setline(1, "Hello")', 'silent w Xtest', 'q!'], 'Xscript') + call writefile(['call setline(1, "Hello")', 'silent w Xtest', 'q!'], 'Xscript', 'D') call system(cmd) call assert_equal(['Hello'], readfile('Xtest')) - call delete('Xscript') call delete('Xtest') endfunc @@ -214,12 +213,11 @@ func Test_appendbufline_redraw() call deletebufline(buf, 1, '$') call appendbufline(buf, '$', 'Hello Vim world...') END - call writefile(lines, 'XscriptMatchCommon') + call writefile(lines, 'XscriptMatchCommon', 'D') let buf = RunVimInTerminal('-S XscriptMatchCommon', #{rows: 10}) call VerifyScreenDump(buf, 'Test_appendbufline_1', {}) call StopVimInTerminal(buf) - call delete('XscriptMatchCommon') endfunc func Test_setbufline_select_mode() |