mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 18:06:30 +00:00
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".
346d2a359a
This commit is contained in:
@@ -515,8 +515,9 @@ func Test_cmdline_complete_user_names()
|
||||
let names = system('net user')
|
||||
if names =~ '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 assert_match('^"e \~Administrator', @:)
|
||||
call assert_match('^"e \~.*Administrator', @:)
|
||||
endif
|
||||
endif
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user