# HG changeset patch # User Bram Moolenaar # Date 1664453704 -7200 # Node ID d77e208d611d86f56c7367f85db8a4f6b8f1f83c # Parent 52f5b4f6acf1396b6e1f35afcbeec0e478853205 patch 9.0.0621: filetype test leaves file behind Commit: https://github.com/vim/vim/commit/fc06cda8379031890ee8852cdca61eb8af8e1ba2 Author: Dominique Pelle Date: Thu Sep 29 13:07:18 2022 +0100 patch 9.0.0621: filetype test leaves file behind Problem: Filetype test leaves file behind. Solution: Add deferred delete flag to writefile(). (Dominique Pell?, closes #11249) diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -1233,7 +1233,7 @@ endfunc func Test_m_file() filetype on - call writefile(['looks like Matlab'], 'Xfile.m') + call writefile(['looks like Matlab'], 'Xfile.m', 'D') split Xfile.m call assert_equal('matlab', &filetype) bwipe! diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -700,6 +700,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 621, +/**/ 620, /**/ 619,