0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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)
This commit is contained in:
Dominique Pelle
2022-09-29 13:07:18 +01:00
committed by Bram Moolenaar
parent 50faf02f43
commit fc06cda837
2 changed files with 3 additions and 1 deletions

View File

@@ -1233,7 +1233,7 @@ endfunc
func Test_m_file() func Test_m_file()
filetype on filetype on
call writefile(['looks like Matlab'], 'Xfile.m') call writefile(['looks like Matlab'], 'Xfile.m', 'D')
split Xfile.m split Xfile.m
call assert_equal('matlab', &filetype) call assert_equal('matlab', &filetype)
bwipe! bwipe!

View File

@@ -699,6 +699,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
621,
/**/ /**/
620, 620,
/**/ /**/