diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-29 21:01:57 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-29 21:01:57 +0100 |
commit | 7dd5a78b88af7734bdbf236fdfafb49f27a0ca2e (patch) | |
tree | 4b4a6aabc97d0e33296c24b8b70b841f7a5c063b /src/testdir/test_jumplist.vim | |
parent | ac38ec7c7f7cb0ab94397dc19bd72b0a84afdbe5 (diff) | |
download | vim-git-7dd5a78b88af7734bdbf236fdfafb49f27a0ca2e.tar.gz |
patch 9.0.0625: too many delete() calls in testsv9.0.0625
Problem: Too many delete() calls in tests.
Solution: Use deferred delete where possible.
Diffstat (limited to 'src/testdir/test_jumplist.vim')
-rw-r--r-- | src/testdir/test_jumplist.vim | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/testdir/test_jumplist.vim b/src/testdir/test_jumplist.vim index 054fda083..4b5e3213f 100644 --- a/src/testdir/test_jumplist.vim +++ b/src/testdir/test_jumplist.vim @@ -15,7 +15,7 @@ func Test_getjumplist() for i in range(1, 100) call add(lines, "Line " . i) endfor - call writefile(lines, "Xtest") + call writefile(lines, "Xtest", 'D') " Jump around and create a jump list edit Xtest @@ -57,8 +57,6 @@ func Test_getjumplist() clearjumps call test_garbagecollect_now() call assert_equal(4, l[1]) - - call delete("Xtest") endfunc func Test_jumplist_invalid() |