diff options
author | Dominique Pelle <dominique.pelle@gmail.com> | 2022-09-29 13:07:18 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-29 13:07:18 +0100 |
commit | fc06cda8379031890ee8852cdca61eb8af8e1ba2 (patch) | |
tree | 3cb1429851d05829c53a8ad688b047674d624272 | |
parent | 50faf02f43d7f1a56ec2023028fca7c72dbce83e (diff) | |
download | vim-git-fc06cda8379031890ee8852cdca61eb8af8e1ba2.tar.gz |
patch 9.0.0621: filetype test leaves file behindv9.0.0621
Problem: Filetype test leaves file behind.
Solution: Add deferred delete flag to writefile(). (Dominique Pellé,
closes #11249)
-rw-r--r-- | src/testdir/test_filetype.vim | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
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 @@ -700,6 +700,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 621, +/**/ 620, /**/ 619, |