0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 9.0.1654: MS-Windows: test for default 'viewdir' fails

Problem:    MS-Windows: test for default 'viewdir' fails.
Solution:   Escape the pattern.
This commit is contained in:
Bram Moolenaar
2023-06-23 22:56:47 +01:00
parent b8b1c8ebd4
commit 813b7a85f2
2 changed files with 4 additions and 1 deletions

View 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')

View File

@@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1654,
/**/
1653,
/**/