]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1654: MS-Windows: test for default 'viewdir' fails v9.0.1654
authorBram Moolenaar <Bram@vim.org>
Fri, 23 Jun 2023 21:56:47 +0000 (22:56 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 23 Jun 2023 21:56:47 +0000 (22:56 +0100)
Problem:    MS-Windows: test for default 'viewdir' fails.
Solution:   Escape the pattern.

src/testdir/test_mksession.vim
src/version.c

index 0c4838e6911d9f3fa29058096a1e00079380f3be..aa291821ec68c32df31cefb83976f15bd6c642cf 100644 (file)
@@ -1265,7 +1265,8 @@ endfunc
 " Test default 'viewdir' value
 func Test_mkview_default_home()
   if has('win32')
-    call assert_match('^' .. $ORIGHOME .. '/vimfiles', &viewdir)
+    " use escape() to handle backslash path separators
+    call assert_match('^' .. escape($ORIGHOME, '\') .. '/vimfiles', &viewdir)
   elseif has('unix')
     call assert_match('^' .. $ORIGHOME .. '/.vim', &viewdir)
   elseif has('amiga')
index 931bd9718ba9e49788112a8e58ce78b890ba0e0b..4f224c36bc90b61968cb645a098f545e6803a586 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1654,
 /**/
     1653,
 /**/