From: Bram Moolenaar Date: Sun, 12 Jun 2022 21:33:33 +0000 (+0100) Subject: patch 8.2.5081: autocmd test fails on MS-Windows X-Git-Tag: v8.2.5081 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c0d0c3c75151e716184397a41ff74ab0429db5a;p=thirdparty%2Fvim.git patch 8.2.5081: autocmd test fails on MS-Windows Problem: Autocmd test fails on MS-Windows. Solution: Set shellslash to get forward slashes. --- diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim index 15aab48a69..d0b5b5a4d5 100644 --- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -2108,12 +2108,15 @@ function Test_dirchanged_global() exe 'lcd ' .. fnameescape(s:dir_bar) call assert_equal(expected, s:li) + let save_shellslash = &shellslash + set shellslash exe 'cd ' .. s:dir_foo exe 'cd ' .. s:dir_bar autocmd! test_dirchanged DirChanged global let g:result = expand("") cd - call assert_equal(s:dir_foo, g:result) + let &shellslash = save_shellslash call s:After_test_dirchanged() endfunc diff --git a/src/version.c b/src/version.c index 20ca4eb5b7..117a43210a 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 5081, /**/ 5080, /**/