1
0
forked from aniani/vim

patch 9.0.0463: command line test leaves directory behind

Problem:    Command line test leaves directory behind.
Solution:   Use the "R" flag on the first mkdir(). (Dominique Pellé,
            closes #11127)
This commit is contained in:
Dominique Pelle 2022-09-14 12:51:49 +01:00 committed by Bram Moolenaar
parent 98b373075e
commit febe13892e
2 changed files with 4 additions and 2 deletions

View File

@ -2149,7 +2149,7 @@ func Test_wildmenu_pum()
call VerifyScreenDump(buf, 'Test_wildmenu_pum_13', {}) call VerifyScreenDump(buf, 'Test_wildmenu_pum_13', {})
" Directory name completion " Directory name completion
call mkdir('Xnamedir/XdirA/XdirB', 'p') call mkdir('Xnamedir/XdirA/XdirB', 'pR')
call writefile([], 'Xnamedir/XfileA') call writefile([], 'Xnamedir/XfileA')
call writefile([], 'Xnamedir/XdirA/XfileB') call writefile([], 'Xnamedir/XdirA/XfileB')
call writefile([], 'Xnamedir/XdirA/XdirB/XfileC') call writefile([], 'Xnamedir/XdirA/XdirB/XfileC')
@ -2229,7 +2229,7 @@ func Test_wildmenu_pum()
call VerifyScreenDump(buf, 'Test_wildmenu_pum_31', {}) call VerifyScreenDump(buf, 'Test_wildmenu_pum_31', {})
" Tests a directory name contained full-width characters. " Tests a directory name contained full-width characters.
call mkdir('Xnamedir/あいう', 'pR') call mkdir('Xnamedir/あいう', 'p')
call writefile([], 'Xnamedir/あいう/abc') call writefile([], 'Xnamedir/あいう/abc')
call writefile([], 'Xnamedir/あいう/xyz') call writefile([], 'Xnamedir/あいう/xyz')
call writefile([], 'Xnamedir/あいう/123') call writefile([], 'Xnamedir/あいう/123')

View File

@ -703,6 +703,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 */
/**/
463,
/**/ /**/
462, 462,
/**/ /**/