diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-25 00:43:28 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-25 03:29:49 -0500 |
commit | 0ee4df4d96751cb329b4f72df71ee4f6e831ff6d (patch) | |
tree | a436baaac95f85a5b820df86169cb072bf3ef35b | |
parent | 226ad89a2cf46b9a11a38b3236e23bd3e4c9b94a (diff) | |
download | rneovim-0ee4df4d96751cb329b4f72df71ee4f6e831ff6d.tar.gz rneovim-0ee4df4d96751cb329b4f72df71ee4f6e831ff6d.tar.bz2 rneovim-0ee4df4d96751cb329b4f72df71ee4f6e831ff6d.zip |
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".
https://github.com/vim/vim/commit/346d2a359a6874be6cdb683a8d190ba13aa10e94
-rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index 19bf9b18aa..635ee7984a 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -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 |