]> granicus.if.org Git - vim/commitdiff
patch 8.1.0585: undo test may fail on MS-Windows v8.1.0585
authorBram Moolenaar <Bram@vim.org>
Fri, 14 Dec 2018 14:48:48 +0000 (15:48 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 14 Dec 2018 14:48:48 +0000 (15:48 +0100)
Problem:    Undo test may fail on MS-Windows.
Solution:   Also handle lower case drive letters.

src/testdir/test_undo.vim
src/version.c

index e06abff93bb93ec5bfefa3e3dbcbef1f1ac854b9..7c93e2315340629a1c357e91d949153b52e5bbd3 100644 (file)
@@ -426,7 +426,7 @@ funct Test_undofile()
   let cwd = getcwd()
   if has('win32')
     " Replace windows drive such as C:... into C%...
-    let cwd = substitute(cwd, '^\([A-Z]\):', '\1%', 'g')
+    let cwd = substitute(cwd, '^\([a-zA-Z]\):', '\1%', 'g')
   endif
   let cwd = substitute(cwd . '/Xundofoo', '/', '%', 'g')
   if has('persistent_undo')
index a25f262b887b843fd1a2b30f0721a6c720155b49..2c8b3acc0d938e3578c2b75644e8393b717acfea 100644 (file)
@@ -799,6 +799,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    585,
 /**/
     584,
 /**/