From fc06cda8379031890ee8852cdca61eb8af8e1ba2 Mon Sep 17 00:00:00 2001 From: Dominique Pelle Date: Thu, 29 Sep 2022 13:07:18 +0100 Subject: [PATCH] patch 9.0.0621: filetype test leaves file behind MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Problem: Filetype test leaves file behind. Solution: Add deferred delete flag to writefile(). (Dominique Pellé, closes #11249) --- src/testdir/test_filetype.vim | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 6778b7fda..b5c7de5ff 100644 --- 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 index e264b55ee..eedf11097 100644 --- a/src/version.c +++ b/src/version.c @@ -699,6 +699,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 621, /**/ 620, /**/ -- 2.40.0