mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.0.0621: filetype test leaves file behind (#23125)
Problem: Filetype test leaves file behind.
Solution: Add deferred delete flag to writefile(). (Dominique Pellé,
closes vim/vim#11249)
fc06cda837
Co-authored-by: Dominique Pelle <dominique.pelle@gmail.com>
This commit is contained in:
parent
d9e9dc3a06
commit
c54592bfda
@ -1290,7 +1290,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!
|
||||
|
Loading…
Reference in New Issue
Block a user