diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-12-14 15:48:48 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-12-14 15:48:48 +0100 |
commit | 56242f2b08737677812513c447955579a19aa620 (patch) | |
tree | 3ef7b60ee3da72996c944644cee19eca76a47734 /src/testdir/test_undo.vim | |
parent | 5f5e203c92365ac6399de3663637b73bf9fb6dfa (diff) | |
download | vim-git-56242f2b08737677812513c447955579a19aa620.tar.gz |
patch 8.1.0585: undo test may fail on MS-Windowsv8.1.0585
Problem: Undo test may fail on MS-Windows.
Solution: Also handle lower case drive letters.
Diffstat (limited to 'src/testdir/test_undo.vim')
-rw-r--r-- | src/testdir/test_undo.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testdir/test_undo.vim b/src/testdir/test_undo.vim index e06abff93..7c93e2315 100644 --- a/src/testdir/test_undo.vim +++ b/src/testdir/test_undo.vim @@ -426,7 +426,7 @@ funct Test_undofile() let cwd = getcwd() if has('win32') " Replace windows drive such as C:... into C%... - let cwd = substitute(cwd, '^\([A-Z]\):', '\1%', 'g') + let cwd = substitute(cwd, '^\([a-zA-Z]\):', '\1%', 'g') endif let cwd = substitute(cwd . '/Xundofoo', '/', '%', 'g') if has('persistent_undo') |