Mercurial > vim
changeset 29126:4385dfed5b29 v8.2.5083
patch 8.2.5083: autocmd test still fails on MS-Windows
Commit: https://github.com/vim/vim/commit/db77c49401145d76441fbb3d22a1d7d987681c13
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 12 23:26:50 2022 +0100
patch 8.2.5083: autocmd test still fails on MS-Windows
Problem: Autocmd test still fails on MS-Windows.
Solution: Change backward to forward slashes.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 13 Jun 2022 00:30:02 +0200 |
parents | 861153139f9b |
children | a6e64a2231b5 |
files | src/testdir/test_autocmd.vim src/version.c |
diffstat | 2 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -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) - - let &shellslash = save_shellslash + call assert_equal(s:dir_foo, substitute(g:result, '\\', '/', 'g')) + call s:After_test_dirchanged() endfunc