1
0
forked from aniani/vim

patch 8.1.0836: user completion test can fail on MS-Windows

Problem:    User completion test can fail on MS-Windows.
Solution:   Allow for other names befor "Administrator".
This commit is contained in:
Bram Moolenaar
2019-01-27 20:43:41 +01:00
parent 3e9d4d85c4
commit 346d2a359a
2 changed files with 4 additions and 1 deletions

View File

@@ -430,8 +430,9 @@ func Test_cmdline_complete_user_names()
let names = system('net user') let names = system('net user')
if names =~ 'Administrator' if names =~ 'Administrator'
" Trying completion of :e ~A should complete to Administrator. " Trying completion of :e ~A should complete to Administrator.
" There could be other names starting with "A" before Administrator.
call feedkeys(':e ~A' . "\<c-a>\<c-B>\"\<cr>", 'tx') call feedkeys(':e ~A' . "\<c-a>\<c-B>\"\<cr>", 'tx')
call assert_match('^"e \~Administrator', @:) call assert_match('^"e \~.*Administrator', @:)
endif endif
endif endif
endfunc endfunc

View File

@@ -783,6 +783,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 */
/**/
836,
/**/ /**/
835, 835,
/**/ /**/