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:
committed by
Bram Moolenaar
parent
50faf02f43
commit
fc06cda837
@@ -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!
|
||||
|
@@ -699,6 +699,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
621,
|
||||
/**/
|
||||
620,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user