changeset 29122:bed794d67f72 v8.2.5081

patch 8.2.5081: autocmd test fails on MS-Windows Commit: https://github.com/vim/vim/commit/7c0d0c3c75151e716184397a41ff74ab0429db5a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 12 22:33:33 2022 +0100 patch 8.2.5081: autocmd test fails on MS-Windows Problem: Autocmd test fails on MS-Windows. Solution: Set shellslash to get forward slashes.
author Bram Moolenaar <Bram@vim.org>
date Sun, 12 Jun 2022 23:45:02 +0200
parents 2a1f9b4a5ac9
children 81cef9a95000
files src/testdir/test_autocmd.vim src/version.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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("<afile>")
   cd -
   call assert_equal(s:dir_foo, g:result)
 
+  let &shellslash = save_shellslash
   call s:After_test_dirchanged()
 endfunc
 
--- a/src/version.c
+++ b/src/version.c
@@ -735,6 +735,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    5081,
+/**/
     5080,
 /**/
     5079,