0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

patch 7.4.1121

Problem:    test_expand leaves files behind.
Solution:   Edit another file before deleting, otherwise the swap file
            remains.
This commit is contained in:
Bram Moolenaar
2016-01-17 18:34:19 +01:00
parent 336bd622c3
commit 08b270a8a4
2 changed files with 8 additions and 3 deletions

View File

@@ -20,10 +20,13 @@ func Test_with_directories()
next! Xdir?/*/nofile next! Xdir?/*/nofile
call assert_equal('Xdir?/*/nofile', expand('%')) call assert_equal('Xdir?/*/nofile', expand('%'))
endif endif
" Edit another file, on MS-Windows the swap file would be in use and can't
" be deleted.
edit foo
call delete('Xdir1', 'rf') call assert_equal(0, delete('Xdir1', 'rf'))
call delete('Xdir2', 'rf') call assert_equal(0, delete('Xdir2', 'rf'))
call delete('Xdir3', 'rf') call assert_equal(0, delete('Xdir3', 'rf'))
endfunc endfunc
func Test_with_tilde() func Test_with_tilde()

View File

@@ -741,6 +741,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 */
/**/
1121,
/**/ /**/
1120, 1120,
/**/ /**/