1
0
forked from aniani/vim

patch 9.0.0768: too many delete() calls in tests

Problem:    Too many delete() calls in tests.
Solution:   Use deferred delete where possible.
This commit is contained in:
Bram Moolenaar
2022-10-15 21:35:56 +01:00
parent c4860bdd28
commit 5b148ef262
7 changed files with 50 additions and 96 deletions

View File

@@ -1274,7 +1274,7 @@ func Test_visual_block_with_virtualedit()
set virtualedit=block
normal G
END
call writefile(lines, 'XTest_block')
call writefile(lines, 'XTest_block', 'D')
let buf = RunVimInTerminal('-S XTest_block', {'rows': 8, 'cols': 50})
call term_sendkeys(buf, "\<C-V>gg$")
@@ -1286,7 +1286,6 @@ func Test_visual_block_with_virtualedit()
" clean up
call term_sendkeys(buf, "\<Esc>")
call StopVimInTerminal(buf)
call delete('XTest_block')
endfunc
func Test_visual_block_ctrl_w_f()
@@ -1331,11 +1330,10 @@ func Test_visual_reselect_with_count()
:
END
call writefile(lines, 'XvisualReselect')
call writefile(lines, 'XvisualReselect', 'D')
source XvisualReselect
bwipe!
call delete('XvisualReselect')
endfunc
func Test_visual_block_insert_round_off()