mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
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>
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user