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:
@@ -20,10 +20,13 @@ func Test_with_directories()
|
||||
next! Xdir?/*/nofile
|
||||
call assert_equal('Xdir?/*/nofile', expand('%'))
|
||||
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 delete('Xdir2', 'rf')
|
||||
call delete('Xdir3', 'rf')
|
||||
call assert_equal(0, delete('Xdir1', 'rf'))
|
||||
call assert_equal(0, delete('Xdir2', 'rf'))
|
||||
call assert_equal(0, delete('Xdir3', 'rf'))
|
||||
endfunc
|
||||
|
||||
func Test_with_tilde()
|
||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1121,
|
||||
/**/
|
||||
1120,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user