Mercurial > vim
diff src/testdir/test_iminsert.vim @ 30580:f08ed0738f7a v9.0.0625
patch 9.0.0625: too many delete() calls in tests
Commit: https://github.com/vim/vim/commit/7dd5a78b88af7734bdbf236fdfafb49f27a0ca2e
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 29 21:01:57 2022 +0100
patch 9.0.0625: too many delete() calls in tests
Problem: Too many delete() calls in tests.
Solution: Use deferred delete where possible.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 29 Sep 2022 22:15:04 +0200 |
parents | 0b47ef4e19b8 |
children |
line wrap: on
line diff
--- a/src/testdir/test_iminsert.vim +++ b/src/testdir/test_iminsert.vim @@ -79,7 +79,7 @@ func Test_imactivatefunc_imstatusfunc_ca call setline(1, ['{{{', 'abc', '}}}']) %foldclose END - call writefile(lines, 'Xscript') + call writefile(lines, 'Xscript', 'D') let buf = RunVimInTerminal('-S Xscript', {}) call assert_notequal('abc', term_getline(buf, 2)) call term_sendkeys(buf, "/abc\n") @@ -87,7 +87,6 @@ func Test_imactivatefunc_imstatusfunc_ca " clean up call StopVimInTerminal(buf) - call delete('Xscript') endfunc " Test for using an lmap in insert mode