commit bd0555ecd49750db87f3cfd07b44ca9640f96619
parent 827cfe4a764414b91062f7dad8699ef85701fc6d
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri, 18 Apr 2025 08:05:13 +0800
vim-patch:9.0.1654: MS-Windows: test for default 'viewdir' fails
Problem: MS-Windows: test for default 'viewdir' fails.
Solution: Escape the pattern.
https://github.com/vim/vim/commit/813b7a85f2489e9f698239a9fee17c64da68f435
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/old/testdir/test_mksession.vim b/test/old/testdir/test_mksession.vim
@@ -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')