changeset 30572:d77e208d611d v9.0.0621

patch 9.0.0621: filetype test leaves file behind Commit: https://github.com/vim/vim/commit/fc06cda8379031890ee8852cdca61eb8af8e1ba2 Author: Dominique Pelle <dominique.pelle@gmail.com> 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)
author Bram Moolenaar <Bram@vim.org>
date Thu, 29 Sep 2022 14:15:04 +0200
parents 52f5b4f6acf1
children c6b5eb07032a
files src/testdir/test_filetype.vim src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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!
--- 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,