Skip to content

Commit 08b270a

Browse files
committed
patch 7.4.1121
Problem: test_expand leaves files behind. Solution: Edit another file before deleting, otherwise the swap file remains.
1 parent 336bd62 commit 08b270a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/testdir/test_expand.vim

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ func Test_with_directories()
2020
next! Xdir?/*/nofile
2121
call assert_equal('Xdir?/*/nofile', expand('%'))
2222
endif
23+
" Edit another file, on MS-Windows the swap file would be in use and can't
24+
" be deleted.
25+
edit foo
2326

24-
call delete('Xdir1', 'rf')
25-
call delete('Xdir2', 'rf')
26-
call delete('Xdir3', 'rf')
27+
call assert_equal(0, delete('Xdir1', 'rf'))
28+
call assert_equal(0, delete('Xdir2', 'rf'))
29+
call assert_equal(0, delete('Xdir3', 'rf'))
2730
endfunc
2831

2932
func Test_with_tilde()

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
1121,
744746
/**/
745747
1120,
746748
/**/

0 commit comments

Comments
 (0)