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

Problem:    MS-Windows: test for default 'viewdir' fails.
Solution:   Escape the pattern.

813b7a85f2

Co-authored-by: Bram Moolenaar <Bram@vim.org>
(cherry picked from commit bd0555ecd4)
This commit is contained in:
zeertzjq
2025-04-18 08:05:13 +08:00
committed by github-actions[bot]
parent a97713485d
commit cdd3f2a2e6

View File

@ -1202,7 +1202,8 @@ endfunc
func Test_mkview_default_home()
throw 'Skipped: N/A'
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')