]> granicus.if.org Git - vim/commitdiff
patch 8.2.5083: autocmd test still fails on MS-Windows v8.2.5083
authorBram Moolenaar <Bram@vim.org>
Sun, 12 Jun 2022 22:26:50 +0000 (23:26 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 12 Jun 2022 22:26:50 +0000 (23:26 +0100)
Problem:    Autocmd test still fails on MS-Windows.
Solution:   Change backward to forward slashes.

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

index d0b5b5a4d558ecff0b61afe70115a41a44bdd7ed..e9a59c29a6b246c82c017406988c039d0261ad7c 100644 (file)
@@ -2108,15 +2108,12 @@ 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)
+  call assert_equal(s:dir_foo, substitute(g:result, '\\', '/', 'g'))
 
-  let &shellslash = save_shellslash
   call s:After_test_dirchanged()
 endfunc
 
index 6479ffa567c6a49808ee10504585eb4a1747416a..745f85c108e0be6ccb1d8ec2bf83703a6c1433a6 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    5083,
 /**/
     5082,
 /**/