Skip to content

Commit 7c0d0c3

Browse files
committed
patch 8.2.5081: autocmd test fails on MS-Windows
Problem: Autocmd test fails on MS-Windows. Solution: Set shellslash to get forward slashes.
1 parent 6ba83ba commit 7c0d0c3

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/testdir/test_autocmd.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,12 +2108,15 @@ function Test_dirchanged_global()
21082108
exe 'lcd ' .. fnameescape(s:dir_bar)
21092109
call assert_equal(expected, s:li)
21102110

2111+
let save_shellslash = &shellslash
2112+
set shellslash
21112113
exe 'cd ' .. s:dir_foo
21122114
exe 'cd ' .. s:dir_bar
21132115
autocmd! test_dirchanged DirChanged global let g:result = expand("<afile>")
21142116
cd -
21152117
call assert_equal(s:dir_foo, g:result)
21162118

2119+
let &shellslash = save_shellslash
21172120
call s:After_test_dirchanged()
21182121
endfunc
21192122

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
5081,
737739
/**/
738740
5080,
739741
/**/

0 commit comments

Comments
 (0)