]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.5081: autocmd test fails on MS-Windows v8.2.5081
authorBram Moolenaar <Bram@vim.org>
Sun, 12 Jun 2022 21:33:33 +0000 (22:33 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 12 Jun 2022 21:33:33 +0000 (22:33 +0100)
Problem:    Autocmd test fails on MS-Windows.
Solution:   Set shellslash to get forward slashes.

src/testdir/test_autocmd.vim
src/version.c

index 15aab48a69c031d4c53cf700caed7bce261d198e..d0b5b5a4d558ecff0b61afe70115a41a44bdd7ed 100644 (file)
@@ -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
 
index 20ca4eb5b7f7c043dc8a777a8fa320a08d37d335..117a43210a3c45887385aa7fe192b15445c63a3b 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    5081,
 /**/
     5080,
 /**/