changeset 15657:c2c4fb3379e8 v8.1.0836

patch 8.1.0836: user completion test can fail on MS-Windows commit https://github.com/vim/vim/commit/346d2a359a6874be6cdb683a8d190ba13aa10e94 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 27 20:43:41 2019 +0100 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".
author Bram Moolenaar <Bram@vim.org>
date Sun, 27 Jan 2019 20:45:05 +0100
parents a54d64695e6f
children baf0958cbef4
files src/testdir/test_cmdline.vim src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -430,8 +430,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
--- a/src/version.c
+++ b/src/version.c
@@ -784,6 +784,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    836,
+/**/
     835,
 /**/
     834,