changeset 32645:779ca4c65eeb v9.0.1654

patch 9.0.1654: MS-Windows: test for default 'viewdir' fails Commit: https://github.com/vim/vim/commit/813b7a85f2489e9f698239a9fee17c64da68f435 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 23 22:56:47 2023 +0100 patch 9.0.1654: MS-Windows: test for default 'viewdir' fails Problem: MS-Windows: test for default 'viewdir' fails. Solution: Escape the pattern.
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Jun 2023 00:00:06 +0200
parents 09725bcf05bd
children acf855d7660c
files src/testdir/test_mksession.vim src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_mksession.vim
+++ b/src/testdir/test_mksession.vim
@@ -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')
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1654,
+/**/
     1653,
 /**/
     1652,