From 24db6c1e5739674fe7f1dc1d9af73791f36fabbd Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 5 Jul 2022 14:33:32 +0800 Subject: [PATCH] vim-patch:8.2.0416: test leaves file behind Problem: Test leaves file behind. Solution: Delete the file. https://github.com/vim/vim/commit/95e59a355bea9d6234fead07d855880e822a8eaf --- src/nvim/testdir/test_indent.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nvim/testdir/test_indent.vim b/src/nvim/testdir/test_indent.vim index 5c47141292..f079a8bdd2 100644 --- a/src/nvim/testdir/test_indent.vim +++ b/src/nvim/testdir/test_indent.vim @@ -157,10 +157,12 @@ func Test_modeline_indent_expr() call assert_equal('GetIndent()', &indentexpr) exe "normal Oa\nb\n" call assert_equal([' a', ' b'], getline(1, 2)) + set modelineexpr& delfunc GetIndent let &modeline = modeline close! + call delete('Xfile.txt') endfunc " vim: shiftwidth=2 sts=2 expandtab