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_balloon.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_balloon.vim')
-rw-r--r-- | src/testdir/test_balloon.vim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/testdir/test_balloon.vim b/src/testdir/test_balloon.vim index ed0c6c1936..5e84f9e675 100644 --- a/src/testdir/test_balloon.vim +++ b/src/testdir/test_balloon.vim @@ -29,7 +29,7 @@ func Test_balloon_eval_term() call feedkeys("\<MouseMove>\<Ignore>", "xt") endfunc [CODE] - call writefile(s:common_script + xtra_lines, 'XTest_beval') + call writefile(s:common_script + xtra_lines, 'XTest_beval', 'D') " Check that the balloon shows up after a mouse move let buf = RunVimInTerminal('-S XTest_beval', {'rows': 10, 'cols': 50}) @@ -45,7 +45,6 @@ func Test_balloon_eval_term() " clean up call StopVimInTerminal(buf) - call delete('XTest_beval') endfunc func Test_balloon_eval_term_visual() @@ -54,7 +53,7 @@ func Test_balloon_eval_term_visual() call writefile(s:common_script + [ \ 'call test_setmouse(3, 6)', \ 'call feedkeys("3Gevfr\<MouseMove>\<Ignore>", "xt")', - \ ], 'XTest_beval_visual') + \ ], 'XTest_beval_visual', 'D') " Check that the balloon shows up after a mouse move let buf = RunVimInTerminal('-S XTest_beval_visual', {'rows': 10, 'cols': 50}) @@ -63,7 +62,6 @@ func Test_balloon_eval_term_visual() " clean up call StopVimInTerminal(buf) - call delete('XTest_beval_visual') endfunc " vim: shiftwidth=2 sts=2 expandtab |