diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-10-22 12:33:32 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-10-22 12:33:32 +0200 |
commit | 2733779a1a36c06f5f900666ac94bfe4c25ea39b (patch) | |
tree | 02dde397e5963e9c86bea973c11eea16d73ef6b2 | |
parent | a1224cb706f4aefbf85a524cdcfa804570022136 (diff) | |
download | vim-git-2733779a1a36c06f5f900666ac94bfe4c25ea39b.tar.gz |
patch 8.2.1885: filetype tests unnessarily creates swap filesv8.2.1885
Problem: Filetype tests unnessarily creates swap files.
Solution: Disable 'swapfile'. (Ken Takata, closes #7183)
-rw-r--r-- | src/testdir/test_filetype.vim | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 9d997cbcf..a7d60d741 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -549,6 +549,7 @@ let s:filename_case_checks = { \ } func CheckItems(checks) + set noswapfile for [ft, names] in items(a:checks) for i in range(0, len(names) - 1) new @@ -565,6 +566,7 @@ func CheckItems(checks) bwipe! endfor endfor + set swapfile& endfunc func Test_filetype_detection() diff --git a/src/version.c b/src/version.c index 56bf8f665..0716ca1e9 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1885, +/**/ 1884, /**/ 1883, |