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:
@@ -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()
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user