]> granicus.if.org Git - vim/commitdiff
patch 8.1.0836: user completion test can fail on MS-Windows v8.1.0836
authorBram Moolenaar <Bram@vim.org>
Sun, 27 Jan 2019 19:43:41 +0000 (20:43 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 27 Jan 2019 19:43:41 +0000 (20:43 +0100)
Problem:    User completion test can fail on MS-Windows.
Solution:   Allow for other names befor "Administrator".

src/testdir/test_cmdline.vim
src/version.c

index 4dcda858e885c01d735812ac2de5ef8c43722487..02eeb6b8c641d737fbd43f83259f6d7960afd1c8 100644 (file)
@@ -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
index 31bf37893bc014673f6a2b78528582eae60bb7af..dac3c62c55eea864d1de975719458683ea5aed4e 100644 (file)
@@ -783,6 +783,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    836,
 /**/
     835,
 /**/