1
0
forked from aniani/vim

patch 8.2.1885: filetype tests unnessarily creates swap files

Problem:    Filetype tests unnessarily creates swap files.
Solution:   Disable 'swapfile'. (Ken Takata, closes #7183)
This commit is contained in:
Bram Moolenaar
2020-10-22 12:33:32 +02:00
parent a1224cb706
commit 2733779a1a
2 changed files with 4 additions and 0 deletions

View File

@@ -549,6 +549,7 @@ let s:filename_case_checks = {
\ } \ }
func CheckItems(checks) func CheckItems(checks)
set noswapfile
for [ft, names] in items(a:checks) for [ft, names] in items(a:checks)
for i in range(0, len(names) - 1) for i in range(0, len(names) - 1)
new new
@@ -565,6 +566,7 @@ func CheckItems(checks)
bwipe! bwipe!
endfor endfor
endfor endfor
set swapfile&
endfunc endfunc
func Test_filetype_detection() func Test_filetype_detection()

View File

@@ -750,6 +750,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 */
/**/
1885,
/**/ /**/
1884, 1884,
/**/ /**/